/**
 * MERYEM ANA EVI - KUTSAL KIMLIK SISTEMI (Sade, Goz Yormayan, Statik & Asil)
 * Sacred Identity System - Efes Bülbüldagi Digital Heritage
 * 
 * Görsel Disiplin: Apple HIG + WCAG 2.2 AA Kontrast ve Erişilebilirlik + Sakin Müze Estetiği
 */

/* === I. KUTSAL KIMLIK CSS DEGISKENLERI === */
:root {
    --sacred-gold-brightest: #F5D78E;
    --sacred-gold-light:     #D4A843;
    --sacred-gold:           #C5A059;
    --sacred-gold-deep:      #9A7632;
    --sacred-gold-darkest:   #5C4318;
    --sacred-gold-text:      #704E10; /* WCAG AAA Açık Zemin Kontrastı (7.04:1) */

    --sacred-marble-lightest:#FDFBF8;
    --sacred-marble-light:   #F5F0E8;
    --sacred-marble:         #EDE5D5;
    --sacred-marble-dark:    #D4C9B5;
    --sacred-stone:          #9E9080;

    --sacred-midnight:       #0E0B0F;
    --sacred-dusk:           #1A1118;
    --sacred-shadow:         rgba(14, 11, 15, 0.9);

    --sacred-olive:          #4A5D43;
    --sacred-olive-light:    #6B8062;
    --sacred-terra:          #7C4A36;
    --sacred-terra-light:    #A06048;
}

/* === II. BIZANS EL YAZMASI KART SISTEMI === */
.gallery-card {
    position: relative;
    background: var(--bg-card, #FAF8F5);
    border-radius: var(--r-sm, 6px);
    border: 1px solid rgba(197, 160, 89, 0.22);
    transition: transform var(--transition-normal, 0.25s ease), box-shadow var(--transition-normal, 0.25s ease), border-color var(--transition-normal, 0.25s ease);
}

/* Sol üst köşe — Byzantine corner bracket */
.gallery-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--sacred-gold, #C5A059);
    border-left: 2px solid var(--sacred-gold, #C5A059);
    border-radius: 2px 0 0 0;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--transition-fast, 0.2s ease);
}

/* Sağ alt köşe — Byzantine corner bracket */
.gallery-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-bottom: 2px solid var(--sacred-gold, #C5A059);
    border-right: 2px solid var(--sacred-gold, #C5A059);
    border-radius: 0 0 2px 0;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--transition-fast, 0.2s ease);
}

.gallery-card:hover::before,
.gallery-card:hover::after {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(197, 160, 89, 0.35);
    border-color: rgba(197, 160, 89, 0.45);
}

/* Hızlı Fotoğraf Büyütme Butonu (Lightbox) — WCAG 2.5.8 Dokunma Hedefi (44x44px) */
.gallery-card-zoom-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: rgba(26, 24, 27, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(197, 160, 89, 0.55) !important;
    color: #FAF8F5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35) !important;
    padding: 0 !important;
}

.gallery-card-zoom-btn:hover {
    background: rgba(112, 78, 16, 0.95) !important;
    border-color: var(--sacred-gold-brightest, #F5D78E) !important;
    transform: scale(1.08) !important;
}

.gallery-card-zoom-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(26, 24, 27, 0.95), 0 0 0 4.5px var(--sacred-gold, #C5A059) !important;
}

/* === III. BIZANS MOZAIK BÖLÜM AYRAÇLARI (Statik & Zarif) === */
.sacred-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 2.5rem 0;
    position: relative;
}

.sacred-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, 0.2) 20%, rgba(197, 160, 89, 0.55) 60%);
}

.sacred-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(270deg, transparent 0%, rgba(197, 160, 89, 0.2) 20%, rgba(197, 160, 89, 0.55) 60%);
}

.sacred-divider-ornament {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.sacred-divider-gem {
    width: 6px;
    height: 6px;
    background: var(--sacred-gold, #C5A059);
    transform: rotate(45deg);
    border-radius: 1px;
    opacity: 0.7;
}

.sacred-divider-gem.large {
    width: 9px;
    height: 9px;
    opacity: 0.95;
}

/* === IV. KUTSAL YAZIT / RELIC QUOTE === */
.sacred-relic-quote {
    position: relative;
    background: linear-gradient(135deg, #1C150B 0%, #221A0E 100%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: var(--r-sm, 6px);
    padding: 2rem 2.25rem 1.75rem;
    margin: 2.5rem 0;
    color: #FAF8F5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sacred-relic-quote::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    background: var(--sacred-gold, #C5A059);
    border-radius: 0 2px 2px 0;
}

.sacred-relic-quote .relic-drop-cap {
    float: left;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 4.5rem;
    line-height: 0.8;
    font-weight: 700;
    color: var(--sacred-gold, #C5A059);
    margin: 0.1rem 0.65rem 0 0;
}

.sacred-relic-quote blockquote {
    margin: 0;
    font-family: var(--font-quote, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.18rem;
    line-height: 1.8;
    font-style: italic;
    color: rgba(249, 247, 242, 0.95);
}

.sacred-relic-quote cite {
    display: block;
    margin-top: 0.85rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    color: var(--sacred-gold-brightest, #F5D78E);
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* === V. MAKALE İÇİ VURGULAR VE DİKKAT ÇEKİCİ BİLGİ KUTULARI (Callout Boxes & Highlights) === */
.ma-callout {
    position: relative;
    margin: 2rem 0;
    padding: 1.35rem 1.6rem;
    border-radius: var(--r-md, 10px);
    font-size: 1.02rem;
    line-height: 1.7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ma-callout p:last-child {
    margin-bottom: 0;
}

.ma-callout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

/* 1. Kutsal Miras & Özel Anlatı Kutusu (Efes Altını) — WCAG 2.2 AA Kontrast Düzeltmesi */
.ma-callout-gold {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.14) 0%, rgba(253, 251, 248, 0.98) 100%);
    border: 1.5px solid rgba(197, 160, 89, 0.40);
    border-left: 5px solid var(--sacred-gold, #C5A059);
    color: #1A181B;
}
.ma-callout-gold .ma-callout-title {
    color: var(--sacred-gold-text, #704E10); /* 7.04:1 Kontrast */
}

/* 2. Önemli Uyarı & Dikkat Kutusu (Kırmızı) */
.ma-callout-warning {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFF5F5 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.28);
    border-left: 5px solid #DC2626;
    color: #7F1D1D;
}
.ma-callout-warning .ma-callout-title {
    color: #991B1B; /* 7.8:1 Kontrast */
}

/* 3. Rehber & Bilgi Kutusu (Mavi) */
.ma-callout-info {
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.28);
    border-left: 5px solid #2563EB;
    color: #1E3A8A;
}
.ma-callout-info .ma-callout-title {
    color: #1E40AF; /* 7.2:1 Kontrast */
}

/* 4. Ziyaret İpucu & Tavsiye Kutusu (Yeşil) */
.ma-callout-success {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.28);
    border-left: 5px solid #059669;
    color: #064E3B;
}
.ma-callout-success .ma-callout-title {
    color: #065F46; /* 7.5:1 Kontrast */
}

/* 5. Kutsal Alıntı Bloğu — WCAG Kontrast Düzeltmesi */
.ma-quote-sacred {
    position: relative;
    margin: 2.2rem 0;
    padding: 1.5rem 2rem 1.5rem 2.2rem;
    border-left: 4px solid var(--sacred-gold, #C5A059);
    background: rgba(197, 160, 89, 0.08);
    border-radius: 0 10px 10px 0;
    font-family: var(--font-quote, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: #2D2318;
}
.ma-quote-sacred cite {
    display: block;
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
    margin-top: 0.85rem;
    color: var(--sacred-gold-text, #704E10); /* 7.04:1 Kontrast */
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Metin İçi Renkli Vurgular (Highlights & Text Colors — WCAG AA Uyumlu) */
.ma-highlight-gold {
    background-color: rgba(197, 160, 89, 0.22);
    color: #5C4318; /* 7.6:1 Kontrast */
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}
.ma-highlight-red {
    color: #991B1B;
    font-weight: 700;
}
.ma-highlight-blue {
    color: #1E40AF;
    font-weight: 600;
}
.ma-highlight-green {
    color: #065F46;
    font-weight: 600;
}
.ma-highlight-amber {
    color: #92400E;
    font-weight: 600;
}

/* === VI. SEO EKMEK KIRINTISI (BREADCRUMBS — WCAG 2.2 AA KONTRAST) === */
.meryemana-breadcrumbs {
    padding: 10px 0;
    background: var(--bg-page, #F9F7F2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.22);
    font-size: 0.82rem;
    color: var(--text-secondary, #475569); /* 6.54:1 Kontrast (Eski #64748B düzeltildi) */
}

.meryemana-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.meryemana-breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.meryemana-breadcrumb-item a {
    color: var(--text-body, #352F33);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.meryemana-breadcrumb-item a:hover {
    color: var(--sacred-gold-text, #704E10);
    text-decoration: underline;
}

.meryemana-breadcrumb-separator {
    color: var(--sacred-gold-deep, #9A7632); /* 4.5+:1 Kontrast (Eski #C5A059 düzeltildi) */
    font-weight: 700;
    margin: 0 4px;
    user-select: none;
}

.meryemana-breadcrumb-item.current {
    color: var(--sacred-gold-text, #704E10); /* 7.04:1 Kontrast (Eski #8B7355 düzeltildi) */
    font-weight: 600;
}

/* === VII. ARAPÇA / RTL SAĞDAN SOLA KAPSAMLI UYARLAMA === */
[dir="rtl"] .gallery-card::before,
html[dir="rtl"] .gallery-card::before,
html[lang="ar"] .gallery-card::before {
    left: auto;
    right: -2px;
    border-left: none;
    border-right: 2px solid var(--sacred-gold, #C5A059);
    border-radius: 0 2px 0 0;
}

[dir="rtl"] .gallery-card::after,
html[dir="rtl"] .gallery-card::after,
html[lang="ar"] .gallery-card::after {
    right: auto;
    left: -2px;
    border-right: none;
    border-left: 2px solid var(--sacred-gold, #C5A059);
    border-radius: 0 0 0 2px;
}

[dir="rtl"] .gallery-card-zoom-btn,
html[dir="rtl"] .gallery-card-zoom-btn,
html[lang="ar"] .gallery-card-zoom-btn {
    right: auto !important;
    left: 10px !important;
}

[dir="rtl"] .sacred-relic-quote::after,
html[dir="rtl"] .sacred-relic-quote::after,
html[lang="ar"] .sacred-relic-quote::after {
    left: auto;
    right: 0;
    border-radius: 2px 0 0 2px;
}

[dir="rtl"] .sacred-relic-quote .relic-drop-cap,
html[dir="rtl"] .sacred-relic-quote .relic-drop-cap,
html[lang="ar"] .sacred-relic-quote .relic-drop-cap {
    float: right;
    margin: 0.1rem 0 0 0.75rem;
}

[dir="rtl"] .ma-callout,
html[dir="rtl"] .ma-callout,
html[lang="ar"] .ma-callout {
    border-left: 1.5px solid currentColor;
    border-right: 5px solid currentColor;
}

[dir="rtl"] .ma-callout-gold,
html[dir="rtl"] .ma-callout-gold,
html[lang="ar"] .ma-callout-gold {
    border-left: 1.5px solid rgba(197, 160, 89, 0.40);
    border-right: 5px solid var(--sacred-gold, #C5A059);
}

[dir="rtl"] .ma-callout-warning,
html[dir="rtl"] .ma-callout-warning,
html[lang="ar"] .ma-callout-warning {
    border-left: 1.5px solid rgba(239, 68, 68, 0.28);
    border-right: 5px solid #DC2626;
}

[dir="rtl"] .ma-callout-info,
html[dir="rtl"] .ma-callout-info,
html[lang="ar"] .ma-callout-info {
    border-left: 1.5px solid rgba(59, 130, 246, 0.28);
    border-right: 5px solid #2563EB;
}

[dir="rtl"] .ma-callout-success,
html[dir="rtl"] .ma-callout-success,
html[lang="ar"] .ma-callout-success {
    border-left: 1.5px solid rgba(16, 185, 129, 0.28);
    border-right: 5px solid #059669;
}

[dir="rtl"] .ma-quote-sacred,
html[dir="rtl"] .ma-quote-sacred,
html[lang="ar"] .ma-quote-sacred {
    border-left: none;
    border-right: 4px solid var(--sacred-gold, #C5A059);
    border-radius: 10px 0 0 10px;
    padding: 1.5rem 2.2rem 1.5rem 2rem;
}

/* === MERYEM ANA TABİAT PARKI RESMİ HIZLI ZİYARETÇİ BARI === 
 * Tasarım Dili: Sıcak Traverten Taşı, Mermer Krem, Efes Altını ve Bülbüldağı Zeytin Yeşili
 * Mobil Giriş UX: 2 Sütunlu Dokunmatik Grid Sistemi, Apple HIG 48px Standartı
 */
.nature-park-quick-ribbon {
    background: linear-gradient(180deg, #FBF9F6 0%, #F5EFEB 100%);
    border-top: 1px solid rgba(197, 160, 89, 0.35);
    border-bottom: 2px solid var(--sacred-gold, #C5A059);
    padding: 1.15rem 0;
    color: #2C2622;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 18px rgba(74, 59, 50, 0.05);
}

.np-ribbon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.np-ribbon-lead {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 250px;
}

.np-ribbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #384A33;
    background: rgba(90, 107, 82, 0.12);
    border: 1px solid rgba(90, 107, 82, 0.3);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    width: fit-content;
}

.np-ribbon-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1C181B;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.np-ribbon-pills {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.np-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.32);
    border-radius: 8px;
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
    color: #352F33;
    box-shadow: 0 2px 6px rgba(74, 59, 50, 0.04);
    transition: all 0.22s ease;
}

.np-pill:hover {
    background: #FAF8F5;
    border-color: var(--sacred-gold, #C5A059);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.18);
    transform: translateY(-1px);
}

.np-pill-icon {
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}

.np-pill strong {
    color: #1C181B;
    font-weight: 700;
}

/* Dikkat & Ödeme Yöntemi Uyarısı */
.np-pill-warning {
    background: #FFFBEB;
    border-color: rgba(217, 119, 6, 0.35);
    color: #92400E;
}

.np-pill-warning strong {
    color: #B45309;
}

/* Şapel & Kutsal Alan */
.np-pill-sacred {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.45);
    color: #704E10;
}

.np-pill-sacred strong {
    color: #5C4318;
}

.np-ribbon-action .btn-np {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #C5A059 0%, #A88339 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(197, 160, 89, 0.32);
    white-space: nowrap;
}

.np-ribbon-action .btn-np:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 160, 89, 0.48);
    background: linear-gradient(135deg, #D4A843 0%, #B38E46 100%);
}

/* Tablet Uyarlaması (768px - 991px) */
@media (max-width: 991px) {
    .np-ribbon-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    .np-ribbon-lead {
        align-items: center;
        min-width: 0;
    }
    .np-ribbon-pills {
        justify-content: center;
    }
    .np-ribbon-action {
        text-align: center;
        margin-top: 0.25rem;
    }
}

/* Mobil Giriş & Akıllı Telefon Uyarlaması (< 768px) */
@media (max-width: 767px) {
    .nature-park-quick-ribbon {
        padding: 0.85rem 0;
        background: linear-gradient(180deg, #FBF9F6 0%, #F5EFEB 100%);
    }

    .np-ribbon-wrapper {
        background: #FFFFFF;
        border: 1px solid rgba(197, 160, 89, 0.32);
        border-radius: 14px;
        padding: 1.1rem 0.95rem;
        box-shadow: 0 4px 16px rgba(74, 59, 50, 0.06);
        gap: 0.85rem;
    }

    .np-ribbon-lead {
        align-items: center;
        text-align: center;
        gap: 0.35rem;
    }

    .np-ribbon-badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.65rem;
    }

    .np-ribbon-title {
        font-size: 1.02rem;
        line-height: 1.35;
        text-align: center;
    }

    /* 2 Sütunlu Akıllı Mobil Grid */
    .np-ribbon-pills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .np-pill {
        font-size: 0.78rem;
        line-height: 1.32;
        padding: 0.55rem 0.65rem;
        min-height: 48px; /* Apple HIG dokunmatik standartı */
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        border-radius: 8px;
    }

    .np-pill-icon {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .np-pill-text {
        display: block;
        word-break: break-word;
    }

    /* Giriş ücreti uzun olduğu için mobilde tam genişlik (span 2) */
    .np-pill-entry {
        grid-column: 1 / -1;
        background: #FAF8F5;
        justify-content: flex-start;
    }

    /* MüzeKart Geçersiz uyarısı tam genişlikte net ikaz kutusu */
    .np-pill-warning {
        grid-column: 1 / -1;
        justify-content: center;
        text-align: center;
        background: #FFFBEB;
        border-color: rgba(217, 119, 6, 0.35);
        padding: 0.6rem 0.75rem;
    }

    /* Tam genişlikte kolay basılabilir çağrı butonu */
    .np-ribbon-action {
        width: 100%;
        margin-top: 0.2rem;
    }

    .np-ribbon-action .btn-np {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: 0.88rem;
        padding: 0.75rem 1rem;
        border-radius: 9px;
        letter-spacing: 0.02em;
    }
}

/* Çok Küçük Ekranlar (< 380px) */
@media (max-width: 380px) {
    .np-ribbon-pills {
        grid-template-columns: 1fr;
    }
    .np-pill {
        grid-column: 1 / -1;
    }
}

/* =============================================================================
   XIII. SESLİ OKUMA MOTORU WIDGET'I (Web Speech API / TTS UX v4.2)
   Kutsal Efes Paleti: Mermer Taş (#FAF8F5), Efes Altını (#C5A059), Derin Gece (#1A181B)
   ============================================================================= */
.audio-reader-widget {
    background: #FAF8F5;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 12px;
    margin: 1.75rem 0 2.25rem 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(26, 24, 27, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.audio-reader-widget.is-playing {
    border-color: rgba(197, 160, 89, 0.8);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.18);
}

/* 1. Üst Bilgi Satırı: Başlık, Süre, Ses Rozeti ve Canlı Durum */
.audio-reader-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.7rem 1.15rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(255, 255, 255, 0.65);
}

.audio-reader-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.audio-reader-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1A181B;
    letter-spacing: 0.02em;
}

.audio-reader-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #704E10;
    background: rgba(197, 160, 89, 0.16);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    white-space: nowrap;
}

.audio-voice-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9A7632;
    background: #EDE5D5;
    padding: 0.12rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    white-space: nowrap;
}

.audio-reader-status-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.audio-reader-status {
    font-size: 0.76rem;
    color: #6B5E52;
    white-space: nowrap;
}

/* Canlı Ses Dalgası (Equalizer) */
.audio-wave-anim {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    height: 12px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.audio-wave-anim span {
    display: block;
    width: 2.5px;
    height: 4px;
    background: #C5A059;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.audio-wave-anim.is-active {
    opacity: 1;
}

.audio-wave-anim.is-active span:nth-child(1) { animation: audioWave 0.9s ease-in-out infinite 0.1s; }
.audio-wave-anim.is-active span:nth-child(2) { animation: audioWave 0.9s ease-in-out infinite 0.3s; }
.audio-wave-anim.is-active span:nth-child(3) { animation: audioWave 0.9s ease-in-out infinite 0.15s; }
.audio-wave-anim.is-active span:nth-child(4) { animation: audioWave 0.9s ease-in-out infinite 0.4s; }

@keyframes audioWave {
    0%, 100% { height: 4px; }
    50% { height: 12px; }
}

/* 2. Ana Kontrol Satırı: Butonlar, Volume, Hız ve Dişli */
.audio-reader-main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.15rem;
}

/* Kontrol Butonları Grubu */
.audio-controls-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.btn-audio-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.85rem;
    line-height: 1;
    user-select: none;
}

.btn-audio-play {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #C5A059 0%, #9A7632 100%);
    color: #FAF8F5;
    box-shadow: 0 4px 14px rgba(154, 118, 50, 0.38);
    font-size: 1.05rem;
}

.btn-audio-play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(154, 118, 50, 0.5);
    background: linear-gradient(135deg, #D4A843 0%, #A57E37 100%);
}

.btn-audio-play:active {
    transform: scale(0.96);
}

.btn-audio-prev,
.btn-audio-next,
.btn-audio-stop {
    width: 34px;
    height: 34px;
    background: #EDE5D5;
    color: #4A3B32;
    border: 1px solid rgba(197, 160, 89, 0.25);
    font-size: 0.8rem;
}

.btn-audio-prev:hover:not(:disabled),
.btn-audio-next:hover:not(:disabled),
.btn-audio-stop:hover:not(:disabled) {
    background: #E4D9C4;
    color: #1A181B;
    border-color: #C5A059;
    transform: scale(1.06);
}

.btn-audio-prev:disabled,
.btn-audio-next:disabled,
.btn-audio-stop:disabled {
    cursor: not-allowed;
    opacity: 0.4 !important;
}

/* Sağ Kontroller */
.audio-extra-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Ses Düzeyi */
.audio-volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-audio-mute {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    color: #4A3B32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-audio-mute:hover {
    transform: scale(1.2);
}

.audio-volume-slider-box {
    width: 75px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.audio-volume-val-tooltip {
    font-size: 0.68rem;
    font-weight: 600;
    color: #704E10;
    width: 28px;
    text-align: right;
    user-select: none;
}

/* Range Slider Genel */
.audio-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(197, 160, 89, 0.35);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.audio-range-slider:hover {
    background: rgba(197, 160, 89, 0.6);
}

.audio-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C5A059;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.audio-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #9A7632;
}

.audio-range-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C5A059;
    border: none;
    cursor: pointer;
}

/* Hız Seçici */
.audio-speed-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.audio-speed-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A3B32;
}

.audio-speed-select {
    font-size: 0.76rem;
    font-weight: 600;
    color: #4A3B32;
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 8px;
    padding: 0.32rem 0.55rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.audio-speed-select:focus,
.audio-speed-select:hover {
    border-color: #C5A059;
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

/* ⚙️ Ayarlar Butonu */
.btn-audio-settings-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-audio-settings-toggle:hover,
.btn-audio-settings-toggle[aria-expanded="true"] {
    border-color: #C5A059;
    background: #EDE5D5;
    transform: rotate(25deg);
}

/* 3. Açılır Akordeon Ayarlar Paneli */
.audio-settings-panel {
    border-top: 1px dashed rgba(197, 160, 89, 0.3);
    background: #F4EFE6;
    padding: 0.85rem 1.15rem;
    animation: audioPanelSlide 0.25s ease;
}

@keyframes audioPanelSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.audio-settings-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 680px) {
    .audio-settings-panel-inner {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

.audio-settings-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.audio-setting-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4A3B32;
}

.audio-setting-hint {
    font-size: 0.7rem;
    color: #7A6D60;
    line-height: 1.3;
}

.audio-shortcuts-title {
    display: block;
    font-weight: 700;
    color: #9A7632;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.audio-shortcuts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.audio-shortcuts-list li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #4A3B32;
}

.audio-shortcuts-list kbd {
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    padding: 0.1rem 0.35rem;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1A181B;
}

/* 4. İlerleme Çubuğu */
.audio-progress-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(197, 160, 89, 0.18);
    position: relative;
    overflow: hidden;
}

.audio-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #9A7632 0%, #C5A059 50%, #E8C97A 100%);
    transition: width 0.3s ease;
}

/* 5. Canlı Karaoke Vurgusu */
.audio-reading-active {
    background: rgba(197, 160, 89, 0.11) !important;
    border-left: 3.5px solid #C5A059 !important;
    padding-left: 1.1rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    border-radius: 4px !important;
    transition: background-color 0.35s ease, border-left-color 0.35s ease, padding 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.08) !important;
}

/* 6. Metin Seçilerek Dinleme Popover */
.audio-selection-tooltip {
    position: absolute;
    z-index: 9999;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    animation: asPopIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-audio-read-selection {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1A181B;
    color: #F5D78E;
    border: 1px solid #C5A059;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s, background 0.2s;
    user-select: none;
}

.btn-audio-read-selection:hover {
    background: #2C262E;
    color: #FFFFFF;
    transform: scale(1.05);
}

.btn-audio-read-selection:active {
    transform: scale(0.96);
}

@keyframes asPopIn {
    from { opacity: 0; transform: translate(-50%, -85%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

/* Mobil İyileştirmeler */
@media (max-width: 680px) {
    .audio-reader-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
        padding: 0.65rem 0.95rem;
    }
    .audio-reader-main-bar {
        padding: 0.65rem 0.95rem;
        gap: 0.75rem;
    }
    .audio-volume-slider-box {
        width: 55px;
    }
}

