/* Modern Açık Tema - Şık ve Göz Yormayan */

/* Ana renk paleti - Modern açık tema */
:root {
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --bg-card: #ffffff;
    --accent-blue: #2563eb;
    --accent-green: #059669;
    --accent-red: #dc2626;
    --accent-orange: #ea580c;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;
    --border-light: #e5e7eb;
    --border-accent: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --area-fill: linear-gradient(to bottom, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0.05) 100%);
    --area-stroke: #2563eb;
}

body {
    font-family: 'SF Pro Text', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
}

.main-container {
    background: transparent;
}

/* Sayfa Başlığı - Elegant ve Modern */
.seo-title {
    color: var(--text-primary);
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1f2937, #4338ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Ana Döviz Çevirici Konteyneri */
.currency-converter-container {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Input ve Result Bölümleri - Mesafeyi azalttık ve dikey daraltma */
.input-section, .result-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px; /* Dikey daraltma için padding azaltıldı */
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s ease;
}

.input-section {
    margin-bottom: 16px;
}

.result-section {
    margin-top: 0;
}

.input-section:hover, .result-section:hover {
    box-shadow: 0 8px 32px var(--shadow-hover);
    transform: translateY(-2px);
}

/* Label'lar - Modern ve Okunabilir */
.input-group label, .result-label, .rate-label {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* Sonuç ve Kurlar (Yeni Tasarım) */
.dashboard {
    width: 100%;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    padding: 10px;
    border-radius: 12px;
    color: white;
}

.title {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 2px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #166534;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.rates-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
}

.primary-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 18px;
    padding: 20px; /* Dikey daraltma için padding azaltıldı */
    text-align: center;
    border: 2px solid #e2e8f0;
}

.primary-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-value {
    font-size: 3.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.primary-unit {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 400;
}

.rate-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px; /* Dikey daraltma için padding azaltıldı */
    text-align: center;
    border: 2px solid #f1f5f9;
    transition: all 0.2s ease;
}

.rate-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.rate-header {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
}

.buy-card {
    border-left: 4px solid #10b981;
}

.buy-card .rate-amount {
    color: #047857;
}

.sell-card {
    border-left: 4px solid #f59e0b;
}

.sell-card .rate-amount {
    color: #d97706;
}

.footer-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px; /* Dikey daraltma için padding azaltıldı */
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.timestamp {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.source-info {
    font-size: 0.8rem;
    color: #64748b;
}

/* Geçmiş Analiz Bölümü (Orijinal tasarıma geri döndürüldü) */
.historical-rates {
    margin: 32px 0;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 12px 48px var(--shadow-color);
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.historical-rates h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.line-chart {
    position: relative;
    width: 100%;
    height: 350px;
}

.line-chart canvas {
    width: 100% !important;
    height: 350px !important; /* Sabit yükseklik geri döndürüldü */
}

.chart-summary {
    margin-top: 20px;
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-hover);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Timeline Bölümü */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
}

.timeline-item {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px; /* Dikey daraltma için padding azaltıldı */
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 64px var(--shadow-hover);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-right: 80px;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: 20px;
    position: absolute;
    top: 16px;
    right: 16px;
    border: 1px solid var(--border-light);
    font-weight: 500;
}

.rate-display {
    text-align: center;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.rate-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.rate-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.change-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    gap: 12px;
}

.change-amount {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
    color: var(--text-secondary);
}

.change-percent {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.positive {
    color: var(--accent-green);
}

.negative {
    color: var(--accent-red);
}

.change-percent.positive {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.change-percent.negative {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* İçgörüler Bölümü */
.insights {
    background: var(--gradient-card);
    border-radius: 24px;
    padding: 24px; /* Dikey daraltma için padding azaltıldı */
    margin-top: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 64px var(--shadow-color);
}

.insight-card h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insight-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 400;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.metric-item {
    background: var(--bg-secondary);
    padding: 16px; /* Dikey daraltma için padding azaltıldı */
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
}

.metric-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-hover);
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 8px 0;
    font-weight: 400;
}

/* Quick Access Section */
.quick-access-section {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quick-access-section h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-content: center;
}

.quick-card {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    background-color: #333;
}

.quick-amount {
    color: #00ffcc;
    font-weight: bold;
    font-size: 1.1em;
}

.quick-result {
    color: #ffffff;
    font-size: 1em;
    margin-top: 5px;
}

.source-note {
    color: #888;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
}

/* FAQ Calculations Section */
.faq-calculations-section {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.faq-calculations-section h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.faq-calc-list {
    display: grid;
    gap: 15px;
}

.faq-calc-item {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.faq-calc-item:hover {
    transform: translateY(-5px);
    background-color: #333;
}

.faq-calc-item h3 {
    color: #00ffcc;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.faq-calc-item p {
    color: #bbb;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.faq-result {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
}

/* Innovative Features Section */
.innovative-features-section {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.innovative-features-section h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #333;
}

.feature-icon {
    font-size: 1.5em;
    color: #00ffcc;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.feature-card p {
    color: #bbb;
    font-size: 0.95em;
}

/* FAQ Accordion Section */
.sss-section {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sss-section h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.accordion {
    display: grid;
    gap: 10px;
}

.accordion-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: #333;
    color: #ffffff;
    padding: 12px; /* Dikey daraltma için padding azaltıldı */
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #444;
}

.accordion-header .arrow {
    float: right;
}

.accordion-content {
    padding: 12px; /* Dikey daraltma için padding azaltıldı */
    color: #bbb;
    display: none;
    background-color: #2a2a2a;
}

.accordion-content p {
    margin: 0;
    font-size: 0.95em;
}

/* Comparison Section */
.comparison-section {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comparison-section h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.comparison-item {
    background-color: #2a2a2a;
    padding: 12px; /* Dikey daraltma için padding azaltıldı */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
    background-color: #333;
}

.comparison-item h3 {
    color: #00ffcc;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.comparison-item p {
    color: #bbb;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.comparison-result {
    color: #ffffff;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
}

.note {
    color: #888;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Hesaplama Butonu - Modern ve Şık Tasarım */
.calculate-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px; /* Dikey daraltma için padding azaltıldı */
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    gap: 8px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

#btn-text {
    font-weight: 700;
    transition: opacity 0.2s ease;
}

#btn-loading {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite; /* Daha akıcı animasyon için süre azaltıldı */
    display: none; /* Yükleme simgesi sadece gerektiğinde görünür */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-access-grid, .features-grid, .comparison-grid {
        grid-template-columns: 1fr;
    }

    .faq-calc-list {
        grid-template-columns: 1fr;
    }

    .quick-card, .feature-card, .faq-calc-item, .comparison-item {
        margin: 10px 0;
    }

    .accordion-header {
        padding: 10px;
    }

    .input-section, .result-section {
        padding: 12px; /* Mobil için daha da daraltma */
    }

    .primary-section, .rate-card {
        padding: 15px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .insights {
        padding: 16px;
    }

    .metric-item {
        padding: 12px;
    }

    .comparison-item {
        padding: 10px;
    }
}