:root {
    --bg-color: #05070a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent: #ffd700;
    --text-main: #e0e0e0;
    --text-dim: #999;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body { 
    background: var(--bg-color); 
    color: var(--text-main); 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Görsel Arka Plan Katmanları --- */
.stars {
    position: fixed;
    inset: 0;
    background: radial-gradient(1px 1px at 25px 35px, #fff, rgba(0,0,0,0)),
                radial-gradient(1.5px 1.5px at 60px 120px, #fff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 150px 200px, #fff, rgba(0,0,0,0));
    background-size: 250px 250px;
    opacity: 0.2;
    z-index: -1;
    animation: twinkle 4s infinite alternate;
}

.moon {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 18px 18px 0 0 var(--accent);
    opacity: 0.5;
    z-index: -2;
    filter: blur(0.5px) drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

#splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1a2533 0%, #0d1218 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.splash-content {
    text-align: center;
}

/* Logo Animasyonu: Yukarıdan süzülme ve parlama */
.splash-logo-wrap {
    margin-bottom: 20px;
    animation: slideDown 1.2s ease-out forwards;
}

.splash-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    animation: pulseGold 2s infinite ease-in-out;
}

/* Yazı Animasyonu: Alttan gelme ve netleşme */
.splash-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInBlur 1s ease-out 0.5s forwards;
}

.splash-text h1 {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.splash-text p {
    color: #888;
    font-style: italic;
    font-size: 1.1rem;
}

/* Alt kısımdaki ince yükleme çizgisi */
.splash-loader {
    width: 150px;
    height: 2px;
    background: rgba(255, 215, 0, 0.1);
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.splash-loader::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loadingLine 2s linear infinite;
}

/* Animasyon Tanımları */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGold {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)); }
}

@keyframes fadeInBlur {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loadingLine {
    to { left: 100%; }
}

/* --- Navigasyon ve Menü --- */
.nav-header { padding: 50px 20px 30px; text-align: center; }
.menu-grid { padding: 20px; display: grid; gap: 15px; }

.menu-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 25px;
    border-radius: 16px;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px); /* Cam efekti */
}
.menu-card:active { transform: scale(0.97); background: rgba(255,255,255,0.1); }
.icon { margin-right: 15px; font-size: 1.6rem; }

/* --- Overlay Sistem --- */
.overlay {
    position: fixed; top: 0; left: 100%; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 1000;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.overlay.active { left: 0; }

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(13, 18, 24, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.back-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn-modern:active {
    background: var(--accent);
    color: #000;
    transform: scale(0.9);
}

.back-btn-modern svg {
    transition: transform 0.3s ease;
}

.back-btn-modern:hover svg {
    transform: translateX(-2px); /* Hafif sola kayma efekti */
}

/* Başlık stili */
#page-title {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    flex: 1;
}

/* --- Progress & Cards (Daha Önceki Mantıkla Aynı) --- */
.progress-container { width: 100%; height: 6px; background: var(--card-bg); border-radius: 10px; margin-bottom: 25px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.4s ease; box-shadow: 0 0 10px var(--accent); }

.task-card {
    background: var(--card-bg); border-radius: 14px; margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05); overflow: hidden;
}
.task-card.open { border-color: var(--accent); }
.card-main { padding: 20px; display: flex; align-items: center; cursor: pointer; }
.task-info { flex: 1; margin-left: 15px; display: flex; align-items: center; justify-content: space-between; }
.task-card.completed { border-left: 4px solid #4caf50; }

.card-detail { max-height: 0; overflow: hidden; padding: 0 20px; transition: 0.3s ease; }
.task-card.open .card-detail { max-height: 1000px; padding: 0 20px 20px; }

.arabic-text { font-size: 1.7rem; color: var(--accent); text-align: center; margin: 20px 0; line-height: 1.8; font-family: 'Times New Roman', serif; }
.desc-text { font-size: 0.95rem; color: var(--text-dim); }

/* --- Animasyonlar --- */
@keyframes twinkle {
    from { opacity: 0.1; }
    to { opacity: 0.3; }
}

/* Mini Sayaç Tasarımı (Bozmadan Eklendi) */
.mini-zikir-area { background: rgba(0,0,0,0.3); border-radius: 15px; padding: 20px; text-align: center; margin-top: 15px; border: 1px solid rgba(255,215,0,0.1); }
.mini-display { font-size: 3rem; font-weight: bold; color: var(--accent); margin-bottom: 10px; }
.mini-hit-btn { width: 100%; background: var(--accent); border: none; padding: 16px; border-radius: 12px; font-weight: bold; font-size: 1.1rem; cursor: pointer; }
.counter-badge { font-size: 0.75rem; background: rgba(255,215,0,0.15); color: var(--accent); padding: 3px 10px; border-radius: 10px; }

/* player */

/* İnteraktif Dua Alanı */
.interactive-player {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.lang-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-dim);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--accent);
    color: #000;
    font-weight: bold;
}

.lyrics-container {
    max-height: 250px;
    overflow-y: auto;
    text-align: center;
    padding: 20px 0;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
/* Arapça fontu için Google Fonts'tan "Amiri" veya "Cairo" eklenebilir, 
   yoksa sistemdeki en iyi serif fontu kullanırız. */

.word {
    display: inline-block;
    font-size: 1.8rem; /* Fontu biraz küçülttük ki iç içe girmesin */
    margin: 4px 8px;   /* Kelimeler arası yatay boşluğu artırdık */
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    /* Kritik: Kelime bazlı render'da harflerin kopmaması için */
    white-space: nowrap; 
}

/* Arapça Modu Özel Ayarları */
#lyrics-test[data-lang="arabic"], 
.lyrics-container.arabic-mode {
    direction: rtl;            /* Sağdan sola akış */
    text-align: center;        /* Merkeze hizala */
    font-family: 'Amiri', 'Times New Roman', serif;
    line-height: 2.5;          /* Satır aralığını açarak iç içe girmeyi önler */
}

.word.active {
    color: var(--accent);
    transform: scale(1.1);     /* Çok fazla büyütüp yandaki kelimeye bindirmeyelim */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    opacity: 1;
}

/* Okunmuş kelimeler */
.word.read {
    color: #ffffff;
    opacity: 0.9;
}

/* Türkçe Anlam Alanı (Sabit ve Renksiz) */
.turkish-translation {
    margin-top: 25px;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa; /* Soft bir gri, dikkat dağıtmaz */
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

.play-big-btn {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    cursor: pointer;
}

.play-big-btn.playing {
    background: var(--accent);
    color: #000;
}

.popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center;
    z-index: 3000; backdrop-filter: blur(5px);
}
.popup-overlay.active { display: flex; }

.popup-content {
    background: #121820; border: 1px solid var(--accent);
    width: 85%; max-width: 400px; border-radius: 20px;
    padding: 25px; position: relative; animation: popupAnim 0.3s ease;
}
@keyframes popupAnim { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.close-popup { background: none; border: none; color: var(--text-dim); font-size: 2rem; cursor: pointer; }
.popup-body { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; max-height: 300px; overflow-y: auto; }
.popup-close-btn { width: 100%; background: var(--accent); border: none; padding: 12px; border-radius: 10px; font-weight: bold; cursor: pointer; }

/* Accordion içindeki bilgi ikonu */
.info-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* İkon ve yazı arasındaki boşluk */
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: 0.3s;
}

.info-icon:active {
    background: var(--accent);
    color: #000;
}

.info-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    font-style: normal;
    font-size: 10px;
}
/* Gizli checkbox (arka planda çalışmaya devam eder) */
.card-main input[type="checkbox"] {
    display: none;
}

/* Yeni Tamamla Butonu */
.completion-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.complete-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Tamamlanınca butonun hali */
.task-card.completed .complete-btn {
    background: #2e7d32; /* Yeşil */
    border-color: #2e7d32;
    color: white;
}

/* Tamamlanınca kartın başlığındaki durum */
.task-card.completed .task-title {
    color: #4caf50;
    text-decoration: none; /* Üstü çizili olmasın, daha profesyonel durur */
}

.dua-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    filter: drop-shadow(0 0 5px var(--accent));
    display: inline-block;
    vertical-align: middle;
    animation: gentleBreathe 3s infinite ease-in-out;
}

@keyframes gentleBreathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.video-container-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Oranı */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin: 10px 0 20px 0;
    background: #000;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.video-container-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Detay butonu stili */
.info-icon {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(13, 18, 24, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.app-logo-mini {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

.top-actions {
    display: flex;
    gap: 12px;
}

.top-btn {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--accent);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.top-btn:active {
    transform: scale(0.9);
    background: var(--accent);
    color: #000;
}

/* Gizlilik Sayfası İçerik Düzeni */
.privacy-content {
    padding: 20px 25px;
    line-height: 1.8;
    color: #e0e0e0;
}

.privacy-text-full {
    animation: fadeIn 0.5s ease;
}

.privacy-text-full h3 {
    color: var(--accent); /* Senin altın sarısı rengin */
    margin: 25px 0 10px 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Başlıkların yanına küçük bir çizgi efekti */
.privacy-text-full h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.privacy-text-full p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #b0b0b0;
}

.privacy-text-full ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-text-full li {
    margin-bottom: 8px;
    list-style-type: circle;
    color: #ccc;
}

.privacy-text-full strong {
    color: #fff;
    font-weight: 600;
}

/* Sayfa altı dipnot */
.privacy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.install-bar {
    position: fixed;
    bottom: -100px; /* Başlangıçta gizli */
    left: 20px;
    right: 20px;
    background: linear-gradient(90deg, #1a2533 0%, #0d1218 100%);
    border: 1px solid var(--accent);
    border-radius: 15px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5000;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.install-bar.show {
    bottom: 20px;
}

.install-text {
    display: flex;
    flex-direction: column;
}

.install-text strong {
    color: var(--accent);
    font-size: 0.95rem;
}

.install-text span {
    color: #aaa;
    font-size: 0.75rem;
}

.install-action-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
}

.install-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    margin-left: 10px;
    cursor: pointer;
}