/* Finacia Compound Investment Calculator - PRO Version 2.0 */

.finacia-calculator-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* SEO Header */
.finacia-seo-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.finacia-seo-header h1 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 2.2em;
}

.finacia-seo-description {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Container */
.finacia-calc-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Input Panel */
.finacia-input-panel {
    background: #f8f9fa;
    padding: 25px;
    border-right: 1px solid #e9ecef;
}

.finacia-country-selector {
    margin-bottom: 25px;
}

.finacia-country-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.finacia-country-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.finacia-country-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.finacia-input-row {
    margin-bottom: 20px;
}

.finacia-input-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.finacia-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.finacia-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.finacia-currency-symbol {
    padding: 0 12px;
    font-weight: 600;
    color: #667eea;
    background: #f1f3f5;
    border-right: 2px solid #e9ecef;
    line-height: 42px;
}

.finacia-input {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 15px;
    background: transparent;
}

.finacia-input:focus {
    outline: none;
}

/* Buttons */
.finacia-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.finacia-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1 1 auto;
}

.finacia-btn-primary {
    background: #667eea;
    color: white;
    flex: 2 1 auto;
}

.finacia-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.finacia-btn-secondary {
    background: #48bb78;
    color: white;
}

.finacia-btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.finacia-btn-share {
    background: #4299e1;
    color: white;
}

.finacia-btn-share:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.finacia-btn-compare {
    background: #ed8936;
    color: white;
}

.finacia-btn-compare:hover {
    background: #dd6b20;
    transform: translateY(-2px);
}

.finacia-btn-clear {
    background: #e53e3e;
    color: white;
}

.finacia-btn-clear:hover {
    background: #c53030;
}

/* Results Panel */
.finacia-results-panel {
    padding: 25px;
}

.finacia-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.finacia-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.finacia-card-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.finacia-card-value {
    font-size: 24px;
    font-weight: 700;
}

/* Chart Container */
.finacia-chart-container {
    height: 300px;
    margin-bottom: 25px;
    position: relative;
}

/* Growth Table */
.finacia-growth-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.finacia-growth-table {
    width: 100%;
    border-collapse: collapse;
}

.finacia-growth-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.finacia-growth-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

.finacia-growth-table tr:hover {
    background: #f8f9fa;
}

/* Comparison Panel */
.finacia-comparison-panel {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.finacia-comparison-panel h3 {
    margin: 0 0 20px 0;
    color: #495057;
}

.finacia-comparison-chart-container {
    height: 300px;
    margin-bottom: 20px;
}

.finacia-comparison-list {
    display: grid;
    gap: 10px;
}

.finacia-comparison-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    align-items: center;
}

.finacia-comparison-item .country {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.finacia-comparison-item .amount {
    font-weight: 700;
    color: #48bb78;
    text-align: right;
}

.finacia-comparison-item .details {
    color: #6c757d;
    font-size: 13px;
}

/* Share Box */
.finacia-share-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.finacia-share-box h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.finacia-share-url {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.finacia-btn-copy {
    background: #667eea;
    color: white;
}

.finacia-btn-copy:hover {
    background: #5a67d8;
}

/* FAQ Section */
.finacia-seo-block {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.finacia-seo-block h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: #495057;
}

.finacia-faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.finacia-faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.finacia-faq-item h3 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 18px;
}

.finacia-faq-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .finacia-calc-container {
        grid-template-columns: 1fr;
    }
    
    .finacia-input-panel {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .finacia-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .finacia-faq-list {
        grid-template-columns: 1fr;
    }
    
    .finacia-comparison-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px;
    }
    
    .finacia-comparison-item .amount {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .finacia-btn,
    .finacia-button-group,
    .finacia-share-box {
        display: none !important;
    }
    
    .finacia-calc-container {
        box-shadow: none;
    }
}