@charset "UTF-8";
:root {
    --primary: #2c3e50;
    --accent: #27ae60;
    --compare-bg: #f1f8ff;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #2d3436;
    --border: #e9ecef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); padding-bottom: 40px; }

/* Arapça Metin Biçimlendirmesi */
.arabic-text {
    direction: rtl;
    text-align: right;
    font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
    color: #1a252f;
}

.master-meal.arabic-text {
    font-size: 1.45rem;
    line-height: 2.2;
}

.compare-item .arabic-text {
    font-size: 1.25rem;
    line-height: 2.0;
}

/* Üst Marka / Logo Alanı */
.site-brand {
    background: linear-gradient(180deg, #1e2b37 0%, #2c3e50 100%);
    color: #ffffff;
    text-align: center;
    padding: 10px 0px 10px 0px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f1f2f6;
    margin-bottom: 2px;
}

.site-title span {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 600;
}        

.site-slogan {
    font-size: 0.65rem;
    color: #bdc3c7;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Yapışkan Kontrol Çubuğu */
header {
    position: sticky; 
    top: 0; 
    z-index: 100;
    background: #2c3e50; 
    color: #fff;
    padding: 0px 12px 10px 12px; /* Alt boşluğu 6px gibi minimum bir değere çekin */
    margin-bottom: 0;           /* Header'ın alt dış boşluğu sıfır olsun */
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.nav-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; width: 100%; max-width: 900px; margin: 0 auto;
}
.nav-bar-sub {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-bar-footer {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

#masterSelect {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    padding: 7px 8px;
    font-weight: 500;
}

#sureSiralama {
    font-size: 0.8rem;
    padding: 7px 6px;
    flex-shrink: 0;
}

#sureSelect { 
    flex: 1 1 auto; 
    min-width: 0; 
    font-size: 0.85rem;
    padding: 7px 8px;
    font-weight: 500;
    border-radius: 6px;
}

.filter-toggle-btn {
    background: #34495e; color: #fff; border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 12px;
    border-radius: 6px; cursor: pointer; 
    font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; flex-shrink: 0; 
    display: inline-flex; align-items: center; gap: 5px;
    transition: background 0.2s;
}
.filter-toggle-btn:hover {
    background: #3e5871;
}

select, input {
    background: #fff; border: 1px solid var(--border); padding: 7px 8px;
    border-radius: 6px; font-size: 0.85rem; outline: none;
}

.ayet-range-box {
    display: flex; gap: 6px; align-items: center;
}
.ayet-range-box input {
    width: 62px;
    padding: 6px 4px;
    text-align: center;
}

.filter-panel {
    width: 100%;
    max-width: 900px;
    margin: 8px auto 0 auto;
    box-sizing: border-box;
    background: #2c3e50;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.filter-panel.hidden { display: none; }

.container { 
    max-width: 910px; 
    margin: 0 auto; 
    padding: 6px 4px 4px 4px;
    display: flow-root;
}

/* Ayet ve Besmele Kartları */
.ayet-card, .besmele-card {
    background: var(--card-bg); border-radius: 10px;
    border: 1px solid var(--border); margin-bottom: 6px;
    margin-top: 0px;
    padding: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}

.ayet-card.active, .besmele-card.active { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.25); 
}           

.ayet-header, .besmele-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--border);
}
.besmele-header {
    justify-content: flex-end;
}

.ayet-kunye { font-size: 0.85rem; font-weight: bold; color: var(--primary); }
.header-actions { display: flex; gap: 6px; align-items: center; }

.btn-action {
    border: none; padding: 5px 10px; border-radius: 15px; font-size: 0.75rem;
    font-weight: 600; cursor: pointer;
}
.play-btn { background: #e8f8f5; color: var(--accent); }
.meal-tts-btn { background: #eef2f7; color: var(--primary); }
.sozluk-btn { background: #fef5e7; color: #d35400; }

.master-meal { font-size: 1.05rem; line-height: 1.6; color: #1e272c; margin-bottom: 6px; }
.master-author { font-size: 0.8rem; color: #7f8c8d; display: flex; justify-content: flex-end; align-items: center; }

/* Besmele Özel Stilleri */
.besmele-text {
    text-align: center;
    margin: 12px 0 6px 0;
    line-height: 1.7;
}
.besmele-text.latin {
    font-size: 1.05rem;
    color: #2c3e50;
    font-style: italic;
}
.besmele-text.turkce {
    font-size: 0.98rem;
    color: #555;
}
.besmele-text.arapca {
    font-size: 1.55rem;
    line-height: 2.0;
    color: #1a252f;
}

mark {
    background-color: #ffeaa7;
    color: inherit;
    padding: 0 1px;
    margin: 0;
    border-radius: 2px;
    display: inline;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 25px 0;
}

.page-jump-select {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

#loader { text-align: center; padding: 30px; color: #7f8c8d; }

footer {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(180deg, #2c3e50 0%, #1e2b37 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25); 
    z-index: 100;
}

.audio-info { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: #ecf0f1; 
    letter-spacing: 0.5px;
}

audio { 
    height: 32px; 
    filter: invert(0.9) hue-rotate(180deg);
}

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-card {
    background: #fff; width: 100%; max-width: 500px;
    max-height: 80vh; border-radius: 10px; display: flex;
    flex-direction: column; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.modal-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: #fafafa; border-radius: 10px 10px 0 0;
}
.modal-header h3 { font-size: 1rem; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #7f8c8d; line-height: 1; }
.modal-body { padding: 14px 16px; overflow-y: auto; font-size: 0.95rem; line-height: 1.8; }
.sozluk-row { border-bottom: 1px dashed var(--border); padding: 6px 0; }
.sozluk-row:last-child { border-bottom: none; }
.sozluk-latince { font-weight: bold; color: #d35400; }

.compare-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 10px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
}

.compare-box label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
    user-select: none;
}

.compare-box label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.compare-list {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-item {
    background: var(--compare-bg);
    border-left: 3px solid #3498db;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.compare-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2980b9;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}       

/* Sayfadaki TÜM sure başlık kartlarına varsayılan üst boşluk ver (Bakara, Âl-i İmrân vb.) */
.sure-intro-card {
    background: linear-gradient(135deg, #2e604d 0%, #3d7a63 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px !important; /* <--- İki sure arasındaki boşluk */
    margin-bottom: 8px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Sadece ve sadece en tepedeki İLK kartın üst boşluğunu sıfırla (Navbar'a yapışsın) */
.sure-intro-card:first-child,
.container > .sure-intro-card:first-of-type,
#ayetListesi > .sure-intro-card:first-child {
    margin-top: 0 !important;
}

/* h2'nin getirdiği tarayıcı varsayılanı olan o "Enter" üst boşluğunu yok et: */
.sure-intro-card h2 {
    margin-top: 0 !important;
    margin-bottom: 4px;
    padding-top: 0 !important;
    line-height: 1.2;
}




.sure-intro-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f1f2f6;
    margin-bottom: 4px;
}
.sure-intro-meta {
    font-size: 0.8rem;
    color: #bdc3c7;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.master-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #bdc3c7;
    font-size: 1.0em;
    font-weight: 400;
    margin: 2px;
    user-select: none;
}

.master-author-badge strong {
    color: #f1f2f6;
    font-weight: 600;
}

.sure-intro-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.sure-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
    user-select: none;
}

.sure-nav-btn:hover:not(:disabled) {
    background: var(--accent);
    transform: scale(1.08);
}

.sure-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
}

.ayet-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    margin: 0 3px;
    vertical-align: middle;
    transition: background 0.15s, color 0.15s;
}

.ayet-nav-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.ayet-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ayet-birlestirme-uyari {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef5e7;
    border: 1px solid #fdebd0;
    border-left: 3px solid #e67e22;
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: #795548;
    line-height: 1.35;
}

.ayet-birlestirme-uyari .uyari-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e67e22;
    color: #fff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    flex-shrink: 0;
}

.ayet-birlestirme-uyari a {
    color: #d35400;
    font-weight: 700;
    text-decoration: underline;
}

.kunye-link {
    cursor: pointer;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s, text-decoration 0.15s;
}
.kunye-link:hover {
    color: var(--accent);
    text-decoration: underline;
}       

.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 99;
    transition: opacity 0.2s, transform 0.2s;
}
.scroll-top-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Aşağı İn Butonu: Navbar'ın hemen sağ alt hizasında */
.scroll-bottom-btn {
    position: fixed;
    top: calc(var(--header-height, 220px) + 10px);
    right: 18px;
    bottom: auto;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    z-index: 99;
}
        
.search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-wrapper input {
    width: 100%;
    padding-right: 32px !important;
}
.search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    display: none;
    line-height: 1;
}
.search-clear-btn:hover {
    color: #c0392b;
}

.legal-link {
    color: #bdc3c7;
    text-decoration: underline;
    font-size: 0.78rem;
}

/* Kaldığı Yerden Devam Et Bildirim Kartı */
.resume-toast {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: #1e2b37;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    font-size: 0.88rem;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 340px;
    animation: fadeInSlide 0.3s ease-out;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.resume-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.resume-toast button.btn-resume {
    background: var(--accent, #27ae60);
    color: #fff;
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
}

.resume-toast button.btn-resume:hover {
    background: #219150;
}

.resume-toast button.btn-close {
    background: transparent;
    border: none;
    color: #bdc3c7;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.resume-toast button.btn-close:hover {
    color: #ffffff;
}   

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}       

/* Gizlilik Modalı */
.modal-overlay-legal {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}

.modal-overlay-legal.active {
    display: flex !important;
}

.modal-box {
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    position: relative;
    z-index: 10001;
}       
