       /* --- Renk Paleti & Temalar --- */
        :root {
            --primary-color: #B76E79;
            --secondary-color: #FDF2F5;
            --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;
            --soft-shadow: 0 4px 15px rgba(183, 110, 121, 0.15);
            --header-bg: rgba(255, 249, 249, 0.95);
            --gold-accent: #C8A2A2;
        }

        [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;
            --soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            --header-bg: rgba(26, 26, 26, 0.95);
        }

        /* --- Temel Ayarlar --- */
        html { scroll-behavior: smooth; }
        * { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
        body { font-family: 'Inter', 'Segoe UI', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.7; overflow-x: hidden; }
        a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
        ul { list-style: none; }
        .container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

        /* --- Header --- */
        header { background: var(--header-bg); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); padding: 15px 0; }
        nav { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
        .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; }
        .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; transition: all 0.3s ease; }
        .theme-toggle:hover { background: var(--note-bg); border-color: var(--primary-color); color: var(--primary-color); }
        .hamburger { display: none !important; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; padding: 10px; margin-left: auto; background: none; border: none; }

        /* --- Ana İçerik --- */
        .app-section { padding: 60px 0; }
        .app-header { text-align: center; margin-bottom: 50px; }
        .basmala { 
    font-family: 'Scheherazade New', serif; 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 2rem; 
    display: block; 
    direction: rtl;
    font-weight: 700;
}
        .app-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--text-color); margin-bottom: 15px; }
        .app-subtitle { color: var(--text-light); font-size: 1.1rem; }

        /* --- Hikaye Modu Seçici --- */
        .story-selector {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        .story-btn {
            padding: 10px 20px;
            border: 2px solid var(--primary-color);
            background: transparent;
            color: var(--primary-color);
            border-radius: 25px;
            cursor: pointer;
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            transition: all 0.3s;
        }
        .story-btn.active, .story-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        .word-card { 
    background: var(--secondary-color);
    background-image: none;          
    border-radius: 20px; 
    padding: 40px; 
    text-align: center; 
    box-shadow: var(--soft-shadow); 
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeIn 0.5s ease;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


[data-theme="dark"] .word-card::before {
    border-color: #8B6A75;           
    opacity: 0.4;
}

        .word-card::before {
            content: '';
            position: absolute;
            top: 15px; left: 15px; right: 15px; bottom: 15px;
            border: 2px solid var(--gold-accent);
            border-radius: 15px;
            opacity: 0.3;
            pointer-events: none;
        }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .arabic-word { 
            font-family: 'Scheherazade New', serif; 
            font-size: 4rem; 
            color: var(--primary-color); 
            direction: rtl; 
            margin-bottom: 15px;
            font-weight: 700;
            line-height: 1.2;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }

        .pronunciation { 
            font-size: 1.4rem; 
            color: var(--accent-color); 
            margin-bottom: 10px;
            font-weight: 600;
        }

        .meaning { 
            font-size: 1.8rem; 
            color: var(--text-color); 
            margin-bottom: 20px;
            font-family: 'Lato', sans-serif;
            font-weight: 700;
        }

        .context-card {
    background: var(--card-bg);     
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid var(--accent-color);
    position: relative;
    text-align: right;
    box-shadow: 0 2px 10px rgba(183, 110, 121, 0.1);
}

[data-theme="dark"] .context-card {
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
        .context-label {
            font-family: 'Playfair Display', serif;
            color: var(--primary-color);
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 10px;
            display: block;
            text-align: left;
        }
        .context-arabic {
            font-family: 'Scheherazade New', serif;
            font-size: 1.6rem;
            direction: rtl;
            text-align: right;
            line-height: 1.6;
            color: var(--text-color);
            margin-bottom: 10px;
        }
        .highlight-word {
            color: var(--primary-color);
            font-weight: 700;
            text-decoration: underline;
            text-decoration-color: var(--gold-accent);
            text-underline-offset: 4px;
        }
        .context-translation {
            font-size: 0.95rem;
            color: var(--text-light);
            margin-top: 10px;
            font-style: italic;
            border-top: 1px dashed var(--border-color);
            padding-top: 10px;
            text-align: left;
        }

        .root-badge {
    display: inline-block;
    background: var(--note-bg);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

        /* --- Butonlar --- */
        .btn-primary { 
            display: inline-block; 
            padding: 12px 35px; 
            background-color: var(--primary-color); 
            color: white; 
            border-radius: 30px; 
            font-weight: 600; 
            transition: all 0.3s ease; 
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }
        .btn-primary:hover { 
            background-color: var(--button-hover); 
            transform: translateY(-3px); 
            box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4); 
        }

        .btn-outline { 
            display: inline-block; 
            padding: 10px 30px; 
            background: none; 
            border: 2px solid var(--primary-color); 
            color: var(--primary-color); 
            border-radius: 30px; 
            font-weight: 600; 
            transition: all 0.3s; 
            cursor: pointer;
            font-size: 0.95rem;
        }
        .btn-outline:hover { 
            background-color: var(--primary-color); 
            color: white; 
            box-shadow: 0 4px 10px rgba(183, 110, 121, 0.4); 
        }

        .audio-btn {
            background: var(--note-bg);
            color: var(--primary-color);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            border: 2px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
            vertical-align: middle;
            margin: 0 10px;
        }
        .audio-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }
        .audio-btn.playing {
            animation: pulse 1s infinite;
        }
        @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

        /* --- İlerleme --- */
        .progress-container { 
            background: var(--card-bg); 
            border-radius: 20px; 
            padding: 30px; 
            margin: 30px auto; 
            max-width: 700px; 
            box-shadow: var(--soft-shadow);
            border: 1px solid var(--border-color);
            animation: fadeIn 0.5s ease;
        }
        .level-info { display: flex; justify-content: space-between; margin-bottom: 15px; }
        .progress-bar { width: 100%; height: 12px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
        .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--button-bg)); border-radius: 10px; transition: width 0.5s ease; min-width: 2%; }
        
        .story-progress {
            margin-top: 15px;
            font-size: 0.9rem;
            color: var(--text-light);
            text-align: center;
        }

        /* --- Kontrol Paneli --- */
        .controls { display: flex; justify-content: center; gap: 15px; margin-top: 30px; flex-wrap: wrap; align-items: center; }

        /* --- Footer --- */
        footer.app-footer { background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; margin-top: 60px; }
        .footer-arabic { font-family: 'Scheherazade New', serif; font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px; direction: rtl; }
        .copyright { font-size: 0.85rem; color: var(--text-light); }
        .source-note { font-size: 0.75rem; color: var(--text-light); margin-top: 10px; font-style: italic; }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            .app-title { font-size: 1.8rem; }
            .arabic-word { font-size: 3rem; }
            .hamburger { display: block !important; }
            .nav-links { display: none; }
            .nav-links.active { 
                display: flex !important; 
                position: absolute; 
                top: 70px; left: 0; width: 100%; 
                background: var(--card-bg); 
                flex-direction: column; 
                text-align: center; 
                padding: 20px 0; 
                box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
                border-bottom-left-radius: 20px; 
                border-bottom-right-radius: 20px; 
                z-index: 1000; 
            }
            .nav-links a { display: block; padding: 15px; border-bottom: 1px solid var(--border-color); }
            .story-btn { width: 100%; margin-bottom: 10px; }
            .controls { flex-direction: column; align-items: center; }
            .btn-outline, .btn-primary { width: 100%; max-width: 300px; }
            .audio-btn { margin: 10px 0; }
        }

        .trademark-notice {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    margin: 8px 0;
}

.dark-mode .trademark-notice {
    color: var(--text-light-dark, #aaa);
}

.brand-badge {
    display: inline-block;
/* background: rgba(109, 74, 175, 0.1); */    
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color, #6d4aff);
}

.separator {
    margin: 0 8px;
    color: var(--text-muted, #ccc);
}

.legal-note {
    font-size: 0.75rem;
    color: var(--text-muted, #999);
    margin: 8px 0 0;
}

.dark-mode .legal-note {
    color: var(--text-muted-dark, #777);
}
