        /* --- RENK PALETİ --- */
        :root {
            --primary-color: #B76E79;
            --secondary-color: #FDF5E6;
            --button-bg: #D4A5A5;
            --button-hover: #C58F8F;
            --accent-color: #9E7F7F;
            --bg-color: #FFF9F9;
            --card-bg: #FFFFFF;
            --text-color: #4E342E;
            --text-light: #8D6E63;
            --border-color: #F0E6E6;
            --note-bg: #FFF0F5;
            --nav-bg: rgba(255, 249, 249, 0.95);
            --shadow-color: rgba(183, 110, 121, 0.15);
            --header-bg: var(--nav-bg);
        }

        [data-theme="dark"] {
            --primary-color: #E08E98;
            --secondary-color: #2D2D2D;
            --button-bg: #A07070;
            --button-hover: #805050;
            --accent-color: #C0A0A0;
            --bg-color: #1A1A1A;
            --card-bg: #252525;
            --text-color: #EAEAEA;
            --text-light: #B0B0B0;
            --border-color: #444444;
            --note-bg: #333333;
            --nav-bg: rgba(26, 26, 26, 0.95);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --header-bg: var(--nav-bg);
        }

        /* --- GENEL AYARLAR --- */
* { box-sizing: border-box; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }

body { 
    font-family: 'Lato', sans-serif; 
    background: var(--bg-color); 
    color: var(--text-color); 
    margin: 0; 
    padding: 0;
    line-height: 1.7;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- HEADER & NAV --- */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0; /* Sticky header */
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; /* Container ile aynı genişlik */
    margin: 0 auto; /* Ortala */
    padding: 0 20px; /* Container padding'i */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span {
    font-family: 'Scheherazade New', serif;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.nav-links { display: flex; gap: 30px; }
      
.nav-links a { font-weight: 400; color: var(--text-color); font-size: 0.95rem; position: relative; text-decoration: none; }
      
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--primary-color); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}
.theme-toggle:hover { background: var(--note-bg); border-color: var(--primary-color); }

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    background: none;
    border: none;
    z-index: 1001;
}

/* --- İÇERİK STİLLERİ --- */
.header-sub {
    font-family: 'Lato', sans-serif;
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
}


h1 { 
    font-family: 'Playfair Display', serif;
    color: var(--primary-color); 
    font-size: 2.5rem; 
    margin: 30px 0 10px 0; 
    text-align: center; 
    word-wrap: break-word;
    padding: 0 10px;
}

.controls { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-bottom: 30px; 
    flex-wrap: wrap;
}

select { 
    padding: 12px 20px; 
    border: 2px solid var(--border-color); 
    border-radius: 30px; 
    background: var(--card-bg); 
    color: var(--text-color); 
    font-family: 'Lato', sans-serif; 
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    min-width: 200px;
}

select:focus { border-color: var(--primary-color); }

button { 
    padding: 12px 30px; 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    border-radius: 30px; 
    font-family: 'Lato', sans-serif; 
    font-weight: 600; 
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px var(--shadow-color);
}

button:hover { 
    background: var(--button-hover); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(183, 110, 121, 0.4);
}

.quran-display { 
    background: var(--card-bg); 
    padding: 2rem; 
    border-radius: 20px; 
    box-shadow: 0 4px 15px var(--shadow-color); 
    text-align: center; 
    border: 1px solid var(--border-color);
}

.arabic { 
    font-family: 'Scheherazade New', serif; 
    font-size: 2.2rem; 
    line-height: 2.4; 
    direction: rtl; 
    color: var(--text-color); 
    margin-bottom: 1.5rem; 
    font-weight: 700;
}

.translation { 
    font-size: 1.1rem; 
    color: var(--text-light); 
    line-height: 1.8; 
    text-align: left; 
    font-family: 'Lato', sans-serif;
    margin-top: 10px;
    background: var(--note-bg);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.basmala { 
    font-family: 'Scheherazade New', serif; 
    font-size: 1.8rem; 
    color: var(--primary-color); 
    margin-bottom: 2rem; 
    display: block; 
    direction: rtl;
    font-weight: 700;
}

.loading { 
    color: var(--accent-color); 
    font-style: italic; 
    font-size: 1.1rem;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.back-btn:hover { color: var(--primary-color); }

/* --- MOBİL GÖRÜNÜM (GÜNCELLENDİ) --- */
@media (max-width: 768px) {
    /* HEADER GENEL AYARLARI */
    header {
        padding: 15px 0;
        min-height: 65px;
        backdrop-filter: blur(10px);
    }

    nav {
        padding: 0 10px;
        gap: 10px; /* Elemanlar arası ideal boşluk */
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Kırılmasın */
    }

    /* LOGO (SOL) - BACKGROUND YOK, NORMAL GÖRÜNÜM */
    .logo {
        font-size: 1.1rem !important; /* Biraz daha kompakt */
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--primary-color);
        /* Background ve border kaldırıldı! */
        background: transparent; 
        border-radius: 0;
        padding: 0;
        flex-shrink: 0; /* Logo ezilmesin ama taşmasın */
        margin-right: auto; /* Sağdaki butonlara yer aç */
    }

    .logo span {
        display: inline;
        font-size: 1.1rem;
        color: var(--accent-color);
        font-family: 'Scheherazade New', serif;
    }

    /* TEMA BUTONU (ORTA/Sağ) - ÖRNEK BOYUT */
    #themeToggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        order: 2;
        margin: 0 2px !important; /* Çok az boşluk */
        padding: 0 !important; /* İç boşluk sıfır */
        flex-shrink: 0;
    }

    /* HAMBURGER BUTONU (SAĞ) - TEMAYLA AYNI BOYUTTA! */
    .hamburger {
        display: block;
        order: 3; /* En sağda */
        font-size: 1.2rem !important; /* Tema butonu kadar görünür olsun */
        color: var(--primary-color);
        cursor: pointer;
        padding: 0 !important; /* İç doldurma yok */
        width: 40px !important; /* Tema butonuyla aynı genişlik */
        height: 40px !important; /* Tema butonuyla aynı yükseklik */
        margin-left: 2px !important;
        margin-right: 0 !important;
        background: none;
        border: none;
        flex-shrink: 0;
        display: flex; /* İçindeki ikon ortalamak için */
        align-items: center;
        justify-content: center;
    }

    /* NAV LINKLERİ (AÇILIR MENÜ) */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 999;
        margin-top: 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links a {
        display: block;
        padding: 15px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s;
    }

    .nav-links a:hover {
        background: var(--note-bg);
        color: var(--primary-color);
        padding-left: 20px;
    }

    /* İÇERİK AYARLARI */
    h1 {
        font-size: 1.5rem !important;
        margin: 20px 0 15px 0 !important;
        text-align: center;
    }

    .header-sub {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .controls {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
    }

    select, button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .arabic {
        font-size: 1.5rem;
        line-height: 2.0;
    }

    .translation {
        font-size: 0.95rem;
        padding: 12px;
    }

    .container {
        padding: 0 15px;
    }
}
