/* Global Settings for Mobile Consistency */
html {
    -webkit-text-size-adjust: 100%;
    /* Prevent font boosting on mobile */
    text-size-adjust: 100%;
    font-size: 16px;
    /* Base size */
}

@media (max-width: 640px) {
    html {
        font-size: 10px;
        /* Slightly smaller text on mobile to prevent overflow */
    }
}

:root {
    --bg-page: #f4f6f8;
    --bg-paper: #ffffff;
    --text-main: #2d3748;
    --text-light: #718096;
    --accent: #2b6cb0;
    /* Güven veren güçlü mavi */
    --accent-light: #ebf8ff;
    --border: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-gap: 24px;

    /* Seviye Renkleri */
    --lvl-a1: #48bb78;
    --lvl-a2: #4299e1;
    --lvl-b1: #ecc94b;
    --lvl-b2: #ed8936;
    --lvl-c1: #e53e3e;
    --lvl-c2: #742a2a;
    /* Darker Red/Brown for C2 */
}

#vocabulary-wrapper {
    display: block;
    padding: 0;
    background: var(--bg-page);
    min-height: 80vh;
    width: 100%;
    margin-bottom: 100px;
    /* Footer ile mesafe */
    overflow: visible;
    /* Ensure sticky works */
}

.vocab-card {
    background: var(--bg-paper);
    width: 100%;
    max-width: 1400px;
    /* Daha geniş çalışma alanı */
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    /* Daha az yuvarlak, daha "kağıt" gibi */
    position: relative;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    overflow: visible;
    /* CRITICAL for sticky */
}

/* --- Navigation Header (Controls) --- */
/* --- Sticky Wrapper --- */
.sticky-header-wrapper {
    position: -webkit-sticky;
    /* iOS Safari */
    position: sticky;
    top: 80px;
    /* Exact match for Navbar height */
    z-index: 950;
    /* Higher z-index to stay above content */
    background: #fff;
    /* Ensure bg covers scrolling content */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
    margin-top: -1px;
    /* Prevent visual gap */
    width: 100%;
    padding: 10px 15px;
    /* Increased padding for breathing room */
    box-sizing: border-box;
    /* Ensure padding is included in width */
}

/* JS-Activated Fixed Class for Mobile */
.sticky-header-wrapper.mobile-fixed {
    position: fixed !important;
    top: 80px;
    /* Match sticky top */
    left: 0;
    width: 100%;
    z-index: 950;
    animation: slideDown 0.2s ease-out;
    /* Smooth entry */
}

@media (max-width: 640px) {
    .sticky-header-wrapper.mobile-fixed {
        top: 50px;
        /* Mobile Navbar Height (5rem * 10px font size) */
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Sticky Header Offset Fix (Bölüme Git sekmesine basınca açılan sekmelerin ekrandaki konumu)*/
[id^="sec-"] {
    scroll-margin-top: 146px;
    /* Masaüstü (Tarayıcı) Modu Ayarı */
}

@media (max-width: 768px) {

    /* Mobil Scroll Ayarı */
    [id^="sec-"] {
        scroll-margin-top: 112px;
    }

    .vocab-card {
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .sticky-header-wrapper {
        top: 50px;
        /* Adjusted for Mobile Navbar (5rem = 50px) */
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 8px 15px;
        /* Reverted to original base padding */
        box-sizing: border-box;
        transition: padding 0.2s ease;
    }

    .sticky-header-wrapper.mobile-fixed {
        padding: 10px 25px;
        /* Increased padding specifically for sticky state alignment */
    }
}

/* section-wrapper definition moved here to consolidate */
.section-wrapper {
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

/* Custom Dropdown Styles */
.custom-dropdown-container {
    position: relative;
    /* width: 180px; REMOVED for dynamic sizing */
    min-width: 120px;
    /* Further reduced min width */
    /* Minimum width safety */
    font-family: var(--font-body);
}

.dropdown-trigger {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 8px;
    /* Compact padding */
    font-size: 1.1rem;
    /* Smaller font */
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    user-select: none;
    height: 28px;
    /* Aggressively Compact Height */
}

.dropdown-trigger:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* New compact nav button class */
.nav-btn-small {
    width: 28px;
    /* Aggressively Compact Size */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    /* Align right */
    margin-top: 5px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: max-content;
    /* Fit to content width */
    min-width: 100%;
    max-height: 800px;
    /* Show all items */
    overflow-y: auto;
    z-index: 1001;
    display: none;
    /* Hidden by default */
    padding: 5px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.1s;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

.dropdown-item.separator {
    height: 1px;
    background: var(--border);
    margin: 5px 0;
    padding: 0;
    cursor: default;
}

.dropdown-item .cefr-tag {
    margin-right: 10px;
    font-size: 0.75rem;
    /* Standart yazı boyutu */
    font-weight: 700;
    padding: 2px 0;
    /* İç boşluk */
    width: 26px;
    /* Sabit genişlik */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    line-height: 1.2;
}

/* --- Navigation Header (Controls) --- */
.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    /* Reduced vertical padding */
    border-bottom: 1px dashed var(--border);
    height: 50px;
    /* Fixed height for consistency */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    /* Clear padding for icon centering */
}

.nav-btn:hover:not(:disabled) {
    background: var(--bg-page);
    border-color: var(--text-light);
    transform: scale(1.05);
    /* Slight pop */
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.nav-counter {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.section-nav {
    width: 130px;
    /* Fixed width to fit "Bölüme Git..." */
    min-width: 0;
    max-width: none;
    padding: 4px 8px;
    font-size: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-nav:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

/* --- Layout Structure --- */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
    }
}

/* --- Sol Ana Panel --- */
.main-content {
    padding: 20px 30px 30px 30px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px 15px 20px 15px;
        /* Mobilde padding azaltıldı */
        order: 1;
        /* Ana içerik ilk gelsin */
    }

    .side-panel {
        order: 2;
        /* Yan panel sonra gelsin */
        padding: 5px 15px 20px 15px;
        /* Mobilde padding azaltıldı */
    }
}

/* Başlık Bloğu */
/* word-header definition moved here */
.word-header {
    margin-bottom: 0px;
    padding: 15px 30px;
    background: #fff;
}


.word-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ... existing code ... */

/* Antonym list will use the updated styles later in the file */



/* --- Mobil Slide Animasyonları --- */

/* Ghost Card: Geçiş sırasında eski kartın kopyası */
.ghost-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* Yeni kartın (z-index: auto/0) üzerinde */
    pointer-events: none;
    /* Etkileşimi engelle */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Gölgeyi koru */
    background: var(--bg-paper);
    /* Arka planı koru */
}

/* Container için relative pozisyon (Ghost card referansı) */
#vocabulary-wrapper {
    position: relative;
    /* overflow-x: hidden; -> Bu sticky'yi bozuyor. JS ile dinamik yönetilecek. */
}

/* Animasyon sırasında overflow'u gizlemek için dinamik sınıf */
#vocabulary-wrapper.animating {
    overflow-x: hidden;
}

/* Animasyon Keyframes */

/* Sola Giderken (Next) */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sağa Giderken (Prev) - Back hareketi */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Class'lar */
.anim-slide-out-left {
    animation: slideOutLeft 0.4s ease-in-out forwards;
}

.anim-slide-in-right {
    animation: slideInRight 0.4s ease-in-out forwards;
}

.anim-slide-out-right {
    animation: slideOutRight 0.4s ease-in-out forwards;
}

.anim-slide-in-left {
    animation: slideInLeft 0.4s ease-in-out forwards;
}



.word-title-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

/* main-word definition is moved later in the file */

.phonetics-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ipa {
    font-family: 'Courier New', monospace;
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.audio-mini-btn {
    background: var(--accent-light);
    color: var(--accent);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 1.1rem;
    /* Slightly larger icon */
}

.audio-mini-btn:hover {
    transform: scale(1.1);
    background: #bee3f8;
}

.word-meta {
    margin-bottom: 5px;
    /* Moved to top, so margin bottom needed */
    margin-top: 0;
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Bölüm Stilleri */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: none;
    /* Küçük harf (Normal yazım) */
    margin-top: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;

    /* Yeni Vurgu Stili */
    border-left: 4px solid var(--accent);
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--accent-light) 0%, rgba(255, 255, 255, 0) 90%);
    border-radius: 0 4px 4px 0;
}

/* Çizgiyi kaldırıyoruz */
.section-title::after {
    display: none;
}

.study-block {
    margin-bottom: 30px;
}

/* Anlam Kartları */
.definition-box {
    background-color: #fff;
    margin-bottom: 15px;
}

#sec-definitions .definition-box:first-child {
    margin-top: 10px;
}

#sec-collocations .collo-grid {
    margin-top: 10px;
}

.def-row {
    margin-bottom: 10px;
}

.meaning-en {
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
    line-height: 1.4;
}

.meaning-tr {
    color: var(--accent);
    font-size: 0.95rem;
    margin-top: 2px;
}

.example-box {
    background: #fff;
    padding: 10px 15px;
    border-left: 3px solid var(--text-light);
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 8px;
    border-radius: 0 4px 4px 0;
}

.example-tr {
    color: #718096;
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Gramer Tablosu & Akordeon İçelik */
.grammar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* --- Accordion / Collapsible Styles --- */
/* section-wrapper consolidated above */

.accordion-header {
    background: #f8fafc;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    user-select: none;
}

@media (hover: hover) {
    .accordion-header:hover {
        background: #edf2f7;
    }
}

.section-wrapper.open>.accordion-header {
    border-bottom-color: var(--border);
    background: #f1f5f9;
}


.accordion-title {
    font-size: 1.2rem;
    /* sekmelerin başlıgını büyütüp küçültüyor */
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.section-wrapper.open>.accordion-header>.accordion-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #fff;
}


/* Restore Missing Accordion Open State */
.section-wrapper.open>.accordion-content {
    max-height: 15000px;
    /* Arbitrary large height */
    padding: 15px 20px 5px 20px;
}

/* --- Header Responsive Layout --- */

/* 1. Mobile Controls (Top Row) - Default Visible */
.mobile-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 15px;
    margin-bottom: 0;
}

/* 2. Desktop Elements - Default Hidden */
.desktop-only-flex {
    display: none !important;
}

/* 3. Metadata Row (Tags + Desktop Nav + Desktop Audio) */
.word-meta-row {
    padding: 8px 15px;
    border-bottom: 1px solid var(--border);
    position: relative;
    /* For absolute centering */
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Tags Container */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Desktop Media Query */
@media (min-width: 1024px) {

    /* Hide Old Top Row */
    .mobile-controls {
        display: none !important;
    }

    /* Show Desktop Elements */
    .desktop-only-flex {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    /* Desktop Row Layout */
    .word-meta-row {
        justify-content: space-between;
    }

    /* Absolute Center Navigation */
    .desktop-nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Right Side Audio */
    .desktop-audio-right {
        margin-left: auto;
        /* Push to right if not using space-between */
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Shift Content Right (Desktop Only) */
    .sticky-header-wrapper,
    .word-meta-row {
        padding-left: 33px !important;
        padding-right: 33px !important;
        /* Slight right shift for desktop */
    }
}

@media (max-width: 1023px) {
    .word-meta-row {
        display: flex;
        /* Changed from block to flex for alignment */
        align-items: center;
        /* Vertically center */
        flex-wrap: wrap;
        /* Allow wrapping */
        padding-bottom: 0px;
        padding-top: 0px !important;
        /* Zero top padding */
        /* Reduce bottom padding */
        /* Stack tags nicely on mobile */
    }

    .desktop-nav-center,
    .desktop-audio-right {
        display: none !important;
    }

    /* Mobile specific adjustments to reduce height */
    .word-meta-row {
        min-height: 28px;
        /* Further reduced from 40px */
        padding-bottom: 2px !important;
        padding-top: 2px !important;
    }

    .meta-chip {
        padding: 1px 5px;
        /* Further reduced padding */
        font-size: 0.0rem;
        /* User asked about font sizes, adjusting slightly for compactness */
        line-height: 1.2;
        height: auto;
        /* Ensure it doesn't force height */
    }
}



/* Hide original section titles since we use accordion headers now */
.accordion-content .section-title {
    display: none;
}

/* --- Nested Accordion Fix (Hikayeler vb.) --- */
/* Ana akordeonun içindeki akordeonlar (örn: Hikaye seviyeleri) */
.accordion-content .section-wrapper {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}

.accordion-content .section-wrapper:first-child {
    border-top: none;
}

/* İçteki akordeonun başlığı */
.accordion-content .section-wrapper .accordion-header {
    background: #fff;
    padding-left: 20px;
    /* Her seviye Content'ten gelen girintiye ek olarak başlık girintisi */
    padding-right: 15px;
    border-left: 2px solid #e2e8f0;
}

/* 3. Seviye (Level) Akordeon Başlığı */
.accordion-content .accordion-content .section-wrapper .accordion-header {
    padding-left: 25px;
    background-color: #fafbfc;
}



.accordion-content .section-wrapper .accordion-header:hover {
    background: #f8fafc;
}

/* Fix: Remove extra margin from blocks inside accordion to reduce whitespace */
.accordion-content .side-block,
.accordion-content .study-block {
    margin-bottom: 8px !important;
    margin-top: 8px !important;
}

/* Fix: Remove potential default margins from the table itself */
.accordion-content table,
.accordion-content .progression-table {
    margin-top: 8px !important;
    border-collapse: collapse;
}

/* Reduce table cell padding inside accordion for compactness */
.accordion-content .progression-table td {
    padding: 8px 0;
}

/* İçteki akordeonun içeriği */
.accordion-content .section-wrapper .accordion-content {
    background: #fff;
    padding: 0;
}

/* Hikaye İçeriği Özel Stil */
.story-content {
    padding: 10px 5px;
    /* Minimal yan boşluk */
}

.accordion-content .section-wrapper.open>.accordion-content {
    padding-left: 15px;
    /* Alt seviye içeriğe girinti ekle */
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Mobilde ana akordeon padding'ini de azaltalım ki yer kazanalım */
@media (max-width: 768px) {
    .section-wrapper.open>.accordion-content {
        padding: 5px 15px;
        /* Mobilde genel padding azaltıldı */
    }

    .story-content {
        padding: 10px 2px;
        /* Mobilde neredeyse sıfır */
    }

    /* İç içe durumda parent padding'i sıfırlayabilir miyiz? Zor. 
       Ama hikayeler için özel bir class atayıp yapabiliriz. 
       Şimdilik genel iyileştirme yeterli olabilir. */
}

/* --- Turevler Ozel Bosluk Ayari --- */
/* Üstten 10px boşluk (diğerleri gibi) */
#sec-derivatives .derivative-list {
    margin-top: 10px;
}

/* Alttaki fazla boşluğu al */
/* Alttaki fazla boşluğu al (Sadece AÇIKKEN) */
#sec-derivatives.open .accordion-content {
    padding-bottom: 3px !important;
}

#sec-derivatives ul {
    margin-bottom: 0;
}


/* Grammar items will use the updated styles later in the file */


/* --- Grammar Ozel Bosluk Ayari --- */
#sec-grammar .grammar-grid,
#sec-grammar .logic-box {
    margin-top: 15px;
}

#sec-grammar.open .accordion-content {
    padding-bottom: 3px !important;
}

#sec-grammar .logic-box {
    padding-bottom: 15px !important;
}

/* --- Sağ Yan Panel (Side Bar) --- */
/* --- Sağ Yan Panel (Side Bar) - DEPRECATED/HIDDEN --- */
.side-panel {
    display: none;
}

@media (max-width: 768px) {
    .side-panel {
        padding: 20px;
        background: #fff;
        border-top: 5px solid var(--bg-page);
        /* Ayırıcı */
    }
}

/* side-panel is deprecated/hidden */

/* İlerleme Tablosu */
.progression-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.progression-table th {
    text-align: left;
    color: var(--text-light);
    padding-bottom: 8px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.progression-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.cefr-tag {
    font-weight: 700;
    font-size: 0.7rem;
    /* Compact Square */
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    /* Prevent shrinking in flex containers (like dropdown) */
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 3px;
    color: #fff;
    margin-right: 6px;
}

/* Renkler */
.tag-A1 {
    background: var(--lvl-a1);
}

.tag-A2 {
    background: var(--lvl-a2);
}

.tag-B1 {
    background: var(--lvl-b1);
}

.tag-B2 {
    background: var(--lvl-b2);
}

.tag-C1 {
    background: var(--lvl-c1);
}

.tag-C2 {
    background: var(--lvl-c2);
    color: #fff;
    /* Ensure readable text */
}

/* Uyarı Kutuları (Common Errors) */
.alert-box {
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    padding: 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alert-wrong {
    text-decoration: line-through;
    color: #e53e3e;
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.alert-correct {
    color: #38a169;
    font-weight: 600;
    display: block;
}

/* Etimoloji */
.timeline-path {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border);
    margin-left: 5px;
}

.timeline-step {
    position: relative;
    margin-bottom: 15px;
}

.timeline-step::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    left: -26px;
    top: 4px;
}

.timeline-era {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
}

.timeline-content {
    font-size: 0.9rem;
}

/* Küçük Detaylar */
.meta-chip {
    background: var(--bg-page);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* Stories Section */
.story-container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.story-header {
    background: #f7fafc;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    .story-content {
        flex-direction: row;
    }
}

.story-lang {
    flex: 1;
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.story-lang.turkish {
    background: #fff;
    color: #4a5568;
    border-right: 1px solid var(--border);
}

.story-lang.english {
    background: #fcfdfe;
    /* Hafif farklı ton */
    color: #2d3748;
}

.story-lang h4 {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.story-lang p {
    margin: 0;
}

.story-lang strong {
    color: var(--accent);
    /* Kelime vurgusu */
    font-weight: 700;
}

@media (max-width: 600px) {
    .story-lang.turkish {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* --- NEW SECTIONS STYLES --- */

/* Collocations */
.collo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .collo-grid {
        grid-template-columns: 1fr;
    }
}

.collo-header {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-weight: 700;
}

.collo-item {
    background: #fcfdfe;
    border: 1px solid var(--border);
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.collo-word {
    color: var(--accent);
    font-weight: 600;
    display: block;
}

.collo-example {
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: normal;
    display: block;
}

/* Pragmatics (Idioms) - Card Design */
.idiom-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idiom-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #ecc94b;
    /* Stronger Yellow Accent */
    border-radius: 8px;
    /* Rounded corners */
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.idiom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.idiom-phrase {
    font-weight: 600;
    color: #2d3748;
    /* font-size removed to inherit 0.9rem */
}

.idiom-meaning {
    font-size: 0.95rem;
    color: #718096;
    font-style: italic;
}

/* Cultural Note Box */
.note-box {
    background: #ebf8ff;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    color: #2c5282;
    border: 1px solid #bee3f8;
    line-height: 1.6;
}

.note-box strong {
    color: #2b6cb0;
    font-weight: 800;
    display: block;
    /* Stack on top */
    margin-bottom: 6px;
    /* Space below title */
}

/* Grammar Logic */
.logic-box {
    margin-top: 15px;
    background: transparent;
    /* Removed cream background */
    padding: 12px 12px 15px 12px;
    border-radius: 6px;
    border: 1px dashed #ed8936;
}

.logic-title {
    font-weight: 700;
    color: #c05621;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.logic-compare {
    background: transparent !important;
    /* Force transparent */
    padding: 0;
    margin-top: 8px;
    font-size: 0.9rem;
    border: none !important;
    /* Ensure no border */
}

.logic-examples {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.logic-examples .wrong,
.logic-examples .right {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    /* Reduced gap to bring text closer to icon */
    font-size: 0.85rem;
}

.logic-examples .wrong .icon,
.logic-examples .right .icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: bold;
    width: 20px;
    text-align: center;
    display: inline-block;
    margin-left: -5px;
    /* Shift icons slightly left */
}

.logic-examples .wrong .icon {
    color: #e53e3e;
}

.logic-examples .right .icon {
    color: #38a169;
}

.logic-examples .wrong .ex-text {
    color: #e53e3e;
}

.logic-examples .right .ex-text {
    color: #38a169;
    font-weight: 600;
}

.logic-examples .ex-tr {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 1px;
    font-style: italic;
    font-weight: normal;
}

/* Lexical Nuance */
.nuance-scale {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.scale-title {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.scale-item {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.tag-antonym {
    background: #ffe5e5;
    color: #c53030;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Cognate Hint */
.hint-box {
    margin-top: 20px;
    /* Dış kutuyu şeffaf yapıp padding'i kaldırıyoruz */
    background: transparent;
    border: none;
    padding: 0;
}


/* Antonym Cards */
.antonym-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.antonym-card {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 8px;
    border-radius: 6px;
}

.antonym-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.antonym-word {
    font-weight: 700;
    color: #c53030;
}

.antonym-val {
    font-size: 0.7rem;
    color: #9b2c2c;
    background: #fed7d7;
    padding: 1px 5px;
    border-radius: 4px;
}

.antonym-tr {
    font-size: 0.85rem;
    font-style: italic;
    color: #4a5568;
}

.antonym-note {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 2px;
}

.antonym-warning {
    font-size: 0.7rem;
    color: #e53e3e;
    font-weight: 700;
    margin-top: 4px;
}

/* Mükerrer blok silindi */
/* Mükerrer blok silindi */

.hint-title {
    font-size: 1rem;
    font-weight: 800;
    color: #276749;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
}

.hint-title::before {
    content: '💡';
    font-size: 1.1em;
}

/* Story Box */
.hint-story {
    background: #f0fff4;
    /* Dış kutunun rengini buraya taşıdık */
    border: 1px solid #9ae6b4;
    /* Green border */
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
    /* Equal spacing 12px */
    color: #2f855a;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    text-align: left;
}

/* Story Decoration Label REMOVED */
.hint-story::before {
    display: none;
}

/* Comparison / Bridge Box */
.hint-bridge {
    background: #e6fffa;
    /* Teal tint */
    border: 1px solid #81e6d9;
    border-radius: 8px;
    padding: 12px 15px;
    color: #285e61;
    font-style: italic;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    /* Equal spacing 12px */
    line-height: 1.5;
    text-align: left;
}

.hint-bridge::before {
    display: none;
}

/* List Container */
.hint-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Equal spacing 12px */
    background: transparent;
    border: none;
}

/* List Items (Cards) */
.hint-list li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4299e1;
    /* Blue accent default */
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
    transition: transform 0.2s;
    margin: 0;
    text-align: left;
}

.hint-list li:hover {
    transform: translateX(2px);
    border-color: #cbd5e0;
    border-left-color: #3182ce;
}

/* Alternating Outline Colors */
.hint-list li:nth-child(even) {
    border-left-color: #ed8936;
    /* Orange accent */
}

/* Remove old bullets */
.hint-list li::before {
    display: none !important;
}

/* Strong text inside list */
.hint-list strong {
    color: #2d3748;
    font-weight: 700;
    margin-right: 5px;
    display: block;
    /* Title on its own line looks cleaner in card */
    margin-bottom: 2px;
}

/* Header Title Adjustment */
.main-word {
    font-size: 1.5rem;
    margin: 0;
    line-height: normal;
    /* Better for vertical centering */
    color: #1a202c;
    position: relative;
    top: 1px;
    /* Optical adjustment */
}

/* --- Progression Ozel Bosluk Ayari --- */
#sec-progression .progression-table {
    margin-top: 10px;
}

#sec-progression.open .accordion-content {
    padding-bottom: 5px !important;
}

/* --- Common Spacing for All Sections (Idioms, Nuance, Cognate, Errors, History, Collocations) --- */
[id^="sec-"] .study-block,
[id^="sec-"] .side-block,
[id^="sec-"] .nuance-scale,
[id^="sec-"] .hint-box {
    margin-top: 10px;
}

[id^="sec-"].open .accordion-content {
    padding-bottom: 5px !important;
}

/* --- Nuance Section Refactor --- */
.nuance-group {
    margin-bottom: 20px;
}

.nuance-header {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid;
}

/* Green Theme (Synonyms) */
.theme-green .nuance-header {
    color: #2f855a;
    border-color: #c6f6d5;
}

.theme-green .scale-item {
    background: linear-gradient(to right, #f0fff4, #fff);
    border-left: 3px solid #48bb78;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Red Theme (Antonyms) */
.theme-red .nuance-header {
    color: #c53030;
    border-color: #fed7d7;
}

.theme-red .antonym-card {
    background: linear-gradient(to right, #fff5f5, #fff);
    border-left: 3px solid #f56565;
    /* Overwrite old border if exists */
    border-top: none;
    border-right: none;
    border-bottom: none;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
}

.theme-red .antonym-header,
.theme-red .antonym-note {
    border: none !important;
}

.theme-red .antonym-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Cultural Context Section --- */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.context-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.context-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-content {
    flex-grow: 1;
}

.context-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
}

.inline-icon {
    margin-right: 8px;
    font-size: 1.1em;
    /* Slightly larger than text */
    line-height: 1;
}

.context-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Specific Card Styles (Keep borders or light backgrounds if desired, but removed icon bgs) */
/* Can keep subtle border colors for differentiation */
.register-card {
    border-left: 4px solid #3182ce;
}

.inclusive-card {
    border-left: 4px solid #e53e3e;
}

.nuance-card {
    border-left: 4px solid #805ad5;
}

.business-card {
    border-left: 4px solid #38a169;
}

.trivia-card {
    border-left: 4px solid #ecc94b;
}


/* Register Bar */
.register-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.reg-level {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    color: #fff;
    /* Moved to title line, so ensure it looks good there */
}

.reg-level.formal {
    background: #2b6cb0;
}

.reg-level.neutral {
    background: #718096;
}

.reg-level.informal {
    background: #38a169;
}

.reg-desc {
    font-size: 0.85rem;
    color: #4a5568;
    font-style: normal;
}

/* Keywords Tags for Business Card */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.keyword-tags span {
    background: #e6fffa;
    color: #2c7a7b;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #b2f5ea;
    font-weight: 600;
}

/* --- Exam Strategies Section --- */
.exam-dashboard {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dashboard-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-meters {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meter-group {
    flex: 1;
    min-width: 100px;
}

.exam-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 4px;
}

.progress-bg {
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    /* Ensure visibility */
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fd1c5 0%, #319795 100%);
    border-radius: 4px;
}

.exam-score {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    margin-top: 2px;
}

.dashboard-desc {
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    margin-top: 5px;
}

.exam-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.cat-icon {
    font-size: 1.1em;
}

.exam-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 14px;
    /* Force Block to Guarantee Stacking (Single Column) */
    display: block !important;
    text-align: left !important;
    width: 100% !important;
}

/* Force Block on Mobile to Guarantee Stacking */
@media (max-width: 768px) {
    .exam-card {
        display: block !important;
        margin-bottom: 15px;
        width: 100% !important;
    }

    .strat-title,
    .strat-content {
        width: 100% !important;
        display: block !important;
        margin-bottom: 4px;
        text-align: left !important;
    }

    /* Fix for 3-Column Issue on Mobile (Exam Frequency Meters) */
    .all-meters {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .meter-group {
        width: 100% !important;
        flex: none !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* Stretch to fill width */
    }

    .exam-score {
        text-align: right !important;
        /* Keep score on the right */
        margin-top: 4px;
        float: none;
    }
}

.exam-card:last-child {
    margin-bottom: 0;
}

.strat-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
}

/* Strategy Content */
.strat-content {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
}

/* Strategy Example Box */
.strat-example-box {
    margin-top: 8px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 3px solid #cbd5e0;
    width: 100% !important;
    display: block !important;
}

.strat-ex-en {
    font-size: 0.85rem;
    /* Matched to strat-content */
    color: #2d3748;
    font-style: italic;
    margin-bottom: 2px;
}

.strat-ex-tr {
    font-size: 0.85rem;
    /* Matched to strat-content */
    color: #718096;
}

/* Category Specific Styles */
.vocab-strat {
    border-left: 4px solid #4fd1c5;
}

.grammar-strat {
    border-left: 4px solid #f56565;
}

.reading-strat {
    border-left: 4px solid #ed8936;
}

/* --- Section Toggle Icon (+ / -) --- */
.section-toggle-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 1.5rem;
    font-family: Arial, sans-serif;
    font-weight: 900;
    color: #4a5568;
    /* Koyu Gri - Was #003366 */
    margin-right: 2px;
    margin-left: -5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.section-toggle-icon::before {
    content: '+';
}

/* Open State */
.section-wrapper.open>.accordion-header .section-toggle-icon {
    transform: rotate(180deg);
}

.section-wrapper.open>.accordion-header .section-toggle-icon::before {
    content: '−';
    /* Unicode eksi işareti */
}

/* --- Desktop Specific Icon Adjustments --- */
@media (min-width: 1024px) {
    .section-toggle-icon {
        font-size: 1.4rem;
        /* Desktopta küçük kalmaması için büyütüldü */
        margin-right: 12px;
    }

    .accordion-title {
        gap: 12px;
    }
}




/* Derivative Example Styles */
.der-main-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    width: 100%;
}

.der-word-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.der-note {
    text-align: right;
    flex: 1;
    margin-left: 10px;
    font-size: 0.9rem;
    color: #3182ce;
    /* Blue Color Requested */
    font-style: italic;
}

.der-example-container {
    margin-top: -4px;
    /* Aggressively reduced spacing */
    text-align: right;
    width: 100%;
    padding-top: 0;
    /* Removed Padding */
    border-top: none;
    /* Removed Dashed Line */
}

.der-ex-en {
    font-size: 0.85rem;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 0;
    /* Removed bottom margin */
    line-height: 1.2;
    /* Tighter line height */
}


.der-ex-tr {
    font-size: 0.8rem;
    color: #718096;
    font-style: italic;
    /* Added Italic */
}

.derivative-item {
    display: flex;
    flex-direction: column;
    /* Force vertical stacking */
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
}

.derivative-item:last-child {
    border-bottom: none;
}

/* Grammar Structure Styles */
.grammar-pattern {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #2f855a;
    /* Green text */
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 6px;
    display: inline-block;
}

.grammar-note {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 8px;
}

.grammar-example {
    margin-top: 4px;
    padding-left: 0;
    border-left: none;
}

.grammar-example .en {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 0.9rem;
    /* Same as grammar-pattern */
}

.grammar-example .tr {
    color: #718096;
    font-style: italic;
    font-size: 0.85rem;
}

/* Chic Error Card Styles */
.error-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Rounded corners */
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Subtle shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.error-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.error-wrong,
.error-correct {
    display: flex;
    align-items: center;
    /* Center icon with text */
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.error-wrong .icon {
    color: #e53e3e;
    /* Red icon */
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.error-wrong .text {
    color: #e53e3e;
    /* Red text */
    text-decoration: none;
    /* NO STRIKETHROUGH */
    font-weight: 500;
}

.error-correct .icon {
    color: #38a169;
    /* Green icon */
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.error-correct .text {
    color: #2f855a;
    /* Darker green text */
    font-weight: 700;
}

.error-explanation {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #edf2f7;
    /* Separator */
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
    padding-left: 30px;
    /* Align with text */
}

/* --- Level Tabs (Beginner, Intermediate, Advanced) --- */
.level-tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.level-tab-btn {
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #718096;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-tab-btn:hover {
    transform: translateY(-2px);
    color: #2d3748;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.level-tab-btn.active {
    background-color: #4a5568;
    /* Koyu gri/lacivert tonu */
    color: white;
    border-color: #4a5568;
    box-shadow: 0 8px 15px -4px rgba(74, 85, 104, 0.4);
}

/* Seviye Bazlı Özel Renkler (İsterseniz) */
.level-tab-btn[data-level="beginner"].active {
    background-color: #48bb78;
    /* Yeşil */
    border-color: #48bb78;
    box-shadow: 0 8px 15px -4px rgba(72, 187, 120, 0.4);
}

.level-tab-btn[data-level="intermediate"].active {
    background-color: #4299e1;
    /* Mavi */
    border-color: #4299e1;
    box-shadow: 0 8px 15px -4px rgba(66, 153, 225, 0.4);
}

.level-tab-btn[data-level="advanced"].active {
    background-color: #e53e3e;
    /* Kırmızı */
    border-color: #e53e3e;
    box-shadow: 0 8px 15px -4px rgba(229, 62, 62, 0.4);
}

.level-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.level-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Beginner Section Specific Style --- */
#content-beginner .section-toggle-icon {
    color: #16a34a !important;
    /* Daha koyu ve canlı yeşil */
    font-weight: 900 !important;
    opacity: 1 !important;
}

/* --- Intermediate Section Specific Style --- */
#content-intermediate .section-toggle-icon {
    color: #4299e1 !important;
    /* Buton rengi ile aynı mavi */
    font-weight: 900 !important;
    opacity: 1 !important;
}

/* --- Advanced Section Specific Style --- */
#content-advanced .section-toggle-icon {
    color: #dc2626 !important;
    /* Canlı kırmızı */
    font-weight: 900 !important;
    opacity: 1 !important;
}

/* --- Test Grid & Chip Styles --- */
.test-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    /* Tarayıcıda (Desktop) 15 tane yan yana */
    gap: 8px;
    /* Boşlukları biraz azalttım */
    padding: 10px;
    width: 100%;
}

.test-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    /* Daha küçük buton için radius'u azalttım */
    font-weight: 800;
    font-size: 1rem;
    /* 15'li dizilim için puntoyu ideal boyuta çektim */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.test-chip:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.test-chip:active {
    transform: scale(0.95);
}

/* Seviye Renkleri ile Uyumlu Tasarımlar */
#content-beginner .test-chip {
    background: linear-gradient(145deg, #ffffff, #f0fff4);
    border-color: #dbfce7;
    color: #38a169;
    /* Yeşil geri geldi */
}

#content-beginner .test-chip:hover {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.2);
}

#content-intermediate .test-chip {
    background: linear-gradient(145deg, #ffffff, #ebf8ff);
    border-color: #bee3f8;
    color: #3182ce;
    /* Mavi geri geldi */
}

#content-intermediate .test-chip:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    box-shadow: 0 10px 20px rgba(66, 153, 225, 0.2);
}

#content-advanced .test-chip {
    background: linear-gradient(145deg, #ffffff, #fff5f5);
    border-color: #fed7d7;
    color: #e53e3e;
    /* Kırmızı geri geldi */
}

#content-advanced .test-chip:hover {
    background: #f56565;
    color: white;
    border-color: #f56565;
    box-shadow: 0 10px 20px rgba(229, 62, 62, 0.2);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .test-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .test-chip {
        font-size: 1.1rem;
        /* Mobilde de fark edilecek kadar büyütüldü */
        border-radius: 8px;
        border-width: 2px;
    }
}

@media (max-width: 400px) {
    .test-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 5px;
    }

    .test-chip {
        font-size: 1rem;
        /* Çok küçük ekranda bile okunaklı */
    }
}