/* ═══════════════════════════════════════════════
   JUNIOR LAB JL — ALMANCA ÖĞRENİM
   Stil: Akademik & Temiz | Font: Quicksand
   Palette: Navy + White + Gold
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:        #1a2744;
    --navy-light:  #243460;
    --navy-mid:    #2e4080;
    --gold:        #c9a84c;
    --gold-light:  #e8c97a;
    --gold-pale:   #fdf6e3;
    --white:       #ffffff;
    --off-white:   #f8f7f4;
    --gray-100:    #f0eee9;
    --gray-200:    #e2ddd5;
    --gray-400:    #a09880;
    --gray-600:    #6b6455;
    --gray-800:    #3a342a;
    --red:         #c0392b;
    --red-light:   #fdecea;
    --green:       #1e7e34;
    --green-light: #eaf6ec;
    --shadow-sm:   0 1px 4px rgba(26,39,68,.08);
    --shadow-md:   0 4px 16px rgba(26,39,68,.12);
    --shadow-lg:   0 8px 32px rgba(26,39,68,.16);
    --radius:      10px;
    --radius-lg:   16px;
    --transition:  .2s ease;
    --font:        'Quicksand', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--off-white);
    color: var(--gray-800);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font); color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--gray-600); }

.gold-text { color: var(--gold); }
.red       { color: var(--red) !important; }
.gold      { color: var(--gold) !important; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#site-header {
    background: var(--navy);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: .7rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-jl {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy); font-family: var(--font);
    font-size: 1rem; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(201,168,76,.4);
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font); color: var(--white);
    font-size: 1.15rem; font-weight: 600; letter-spacing: .02em;
}
.logo-text strong { color: var(--gold-light); font-weight: 700; }

/* Nav */
.main-nav { display: flex; gap: .3rem; flex-wrap: wrap; flex: 1; justify-content: center; }
.nav-btn {
    background: transparent; border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.75); font-family: var(--font);
    font-size: .82rem; font-weight: 600; padding: .4rem .85rem;
    border-radius: 7px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: .35rem;
}
.nav-btn:hover, .nav-btn.active {
    background: var(--gold); color: var(--navy);
    border-color: var(--gold);
}
.nav-btn i { font-size: .78rem; }

/* Stats */
.header-stats { display: flex; gap: .5rem; align-items: center; }
.stat-badge {
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.15);
    padding: .3rem .75rem; border-radius: 20px;
    font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; gap: .35rem;
}
.stat-badge.gold { background: rgba(201,168,76,.15); border-color: var(--gold); color: var(--gold-light); }

/* Logout butonu */
.logout-btn {
    background: rgba(192,57,43,.15) !important;
    border-color: rgba(192,57,43,.4) !important;
    color: #e57373 !important;
    padding: .35rem .65rem !important;
    font-size: .85rem !important;
}
.logout-btn:hover {
    background: rgba(192,57,43,.35) !important;
    color: #fff !important;
    border-color: #e57373 !important;
}

/* ═══════════════════════════════════════════════
   MAIN & SECTIONS
═══════════════════════════════════════════════ */
#main-content { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.section { display: none; animation: fadeIn .3s ease; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
    padding-bottom: 1rem; border-bottom: 2px solid var(--gray-200);
}
.section-title i { color: var(--gold); margin-right: .4rem; }

/* ═══════════════════════════════════════════════
   HOME — HERO
═══════════════════════════════════════════════ */
.hero {
    display: grid; grid-template-columns: 1fr auto;
    gap: 2.5rem; align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius-lg); padding: 3rem 2.5rem;
    margin-bottom: 2.5rem; overflow: hidden; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: -40px; right: 200px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(201,168,76,.07); pointer-events: none;
}
.hero-text h1 { color: var(--white); margin-bottom: .75rem; }
.hero-sub { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 1.5rem; max-width: 480px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card-stack { position: relative; width: 180px; height: 120px; }
.preview-card {
    position: absolute; width: 160px; padding: 1rem 1.25rem;
    border-radius: var(--radius); background: var(--white);
    box-shadow: var(--shadow-lg); text-align: center;
}
.preview-card.card-back {
    transform: rotate(-6deg) translateY(10px);
    background: var(--gold-pale); color: var(--gray-400);
    font-family: var(--font); font-size: 1rem; font-weight: 600; padding: 1.2rem;
}
.preview-card.card-front { transform: rotate(2deg); display: flex; flex-direction: column; gap: .25rem; }
.preview-de { font-family: var(--font); font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.preview-tr { font-size: .85rem; color: var(--gray-400); }

/* Feature Grid */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 1.25rem; margin-bottom: 2.5rem;
}
.feature-card {
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem; border: 1px solid var(--gray-200);
    cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p  { font-size: .88rem; margin-bottom: .75rem; }
.feature-tag {
    display: inline-block; background: var(--gold-pale);
    color: var(--gold); border: 1px solid var(--gold-light);
    font-size: .72rem; font-weight: 700; padding: .15rem .65rem;
    border-radius: 20px; letter-spacing: .04em; text-transform: uppercase;
}

/* Progress Overview */
.progress-overview {
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem; border: 1px solid var(--gray-200);
}
.progress-overview .section-title { margin-bottom: 1rem; font-size: 1.15rem; }
.progress-cards { display: flex; gap: 1rem; flex-wrap: wrap; }
.prog-card {
    flex: 1; min-width: 90px; text-align: center;
    background: var(--off-white); border-radius: var(--radius);
    padding: 1rem; border: 1px solid var(--gray-200);
}
.prog-number { font-family: var(--font); font-size: 2rem; color: var(--navy); font-weight: 700; }
.prog-label  { font-size: .78rem; color: var(--gray-400); font-weight: 600; margin-top: .2rem; text-transform: uppercase; letter-spacing: .03em; }

/* ═══════════════════════════════════════════════
   SES BUTONU
═══════════════════════════════════════════════ */
.speak-btn {
    position: absolute; top: .75rem; right: .75rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    border: none; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; z-index: 2; box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
.speak-btn:hover:not(:disabled) {
    background: var(--gold); color: var(--navy);
    transform: scale(1.1);
}
.speak-btn:disabled { opacity: .6; cursor: not-allowed; }
.speak-btn-light {
    background: rgba(255,255,255,.2); color: var(--white);
    border: 1px solid rgba(255,255,255,.3);
}
.speak-btn-light:hover:not(:disabled) {
    background: var(--gold); color: var(--navy);
}

/* Diyalog kart header */
.dial-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem;
}
.dial-card-header .dial-tag { margin-bottom: 0; }
.dial-card-header .speak-btn {
    position: static; /* diyalogda absolute değil, flex içinde */
    width: 32px; height: 32px; font-size: .78rem;
}

/* Kelime listesi ses butonu */
.word-speak-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: transparent; color: var(--gray-400);
    border: 1px solid var(--gray-200); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; transition: var(--transition); flex-shrink: 0;
    font-family: var(--font);
}
.word-speak-btn:hover:not(:disabled) {
    background: var(--navy); color: var(--white); border-color: var(--navy);
}
.word-speak-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════
   VOCABULARY — FLASHCARD
═══════════════════════════════════════════════ */
.vocab-controls { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.flashcard-area {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.card-progress-bar { height: 5px; background: var(--gray-200); border-radius: 3px; margin-bottom: .5rem; }
.card-progress-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s ease; width: 0%; }
.card-counter { text-align: center; font-size: .85rem; color: var(--gray-400); margin-bottom: 1.5rem; font-weight: 700; }

.flashcard-wrapper { perspective: 1000px; width: 100%; max-width: 480px; margin: 0 auto 1.5rem; min-height: 220px; }
.flashcard {
    width: 100%; min-height: 220px; position: relative;
    transform-style: preserve-3d; transition: transform .5s ease; cursor: pointer;
}
.flashcard.flipped { transform: rotateY(180deg); }

.flashcard-front, .flashcard-back {
    position: absolute; width: 100%; min-height: 220px;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 2rem;
    text-align: center; border: 2px solid var(--gray-200);
}
.flashcard-front { background: var(--white); box-shadow: var(--shadow-md); }
.flashcard-back  { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); transform: rotateY(180deg); border-color: var(--navy); }

.card-lang-tag {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--navy); color: var(--white);
    font-size: .7rem; font-weight: 700; padding: .2rem .55rem;
    border-radius: 5px; letter-spacing: .07em;
}
.card-lang-tag.de-back {
    background: rgba(255,255,255,.18); color: var(--white);
    border: 1px solid rgba(255,255,255,.25);
}

/* Ön yüz */
.card-word { font-family: var(--font); font-size: 1.9rem; color: var(--navy); font-weight: 700; margin-bottom: .3rem; line-height: 1.2; }
.card-hint { font-size: .82rem; color: var(--gray-400); font-weight: 600; margin-top: .2rem; }
.card-tap-hint { position: absolute; bottom: .75rem; font-size: .7rem; color: var(--gray-400); font-weight: 600; letter-spacing: .02em; }

/* Arka yüz */
.flashcard-back .card-word {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: .2rem;
}
/* Almanca kelime — arka yüzde küçük tekrar */
.card-back-tr {
    display: inline-block;
    font-size: .8rem; color: rgba(255,255,255,.5);
    font-weight: 600; margin-bottom: .65rem;
    letter-spacing: .03em;
    padding: .15rem .55rem;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
}
/* Almanca örnek cümle */
.card-example {
    font-size: .88rem; color: rgba(255,255,255,.75);
    margin-top: .6rem; font-style: italic; line-height: 1.45;
    padding: .45rem .75rem;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

/* Örnek cümlenin Türkçe çevirisi */
.card-example-tr {
    font-size: .75rem;
    color: rgba(255,255,255,.45);
    font-style: italic;
    margin-top: .3rem;
    padding-left: .75rem;
    line-height: 1.4;
}

.answer-btns { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.btn-wrong, .btn-correct {
    padding: .65rem 2rem; border-radius: var(--radius); font-size: .95rem;
    font-weight: 700; cursor: pointer; border: none; transition: var(--transition);
    display: flex; align-items: center; gap: .5rem; font-family: var(--font);
}
.btn-wrong   { background: var(--red-light); color: var(--red); border: 2px solid var(--red); }
.btn-correct { background: var(--green-light); color: var(--green); border: 2px solid var(--green); }
.btn-wrong:hover   { background: var(--red); color: var(--white); }
.btn-correct:hover { background: var(--green); color: var(--white); }

.card-nav, .dial-card-nav { display: flex; gap: 1rem; justify-content: center; margin-top: 1.25rem; }

/* Word List Panel */
.word-list-panel {
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem; border: 1px solid var(--gray-200);
}
.word-list-panel h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.badge {
    background: var(--navy); color: var(--white);
    font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 20px;
}
.word-list-search { margin-bottom: 1rem; }
.word-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: .5rem; max-height: 320px; overflow-y: auto;
}
.word-item {
    background: var(--off-white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: .5rem .75rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: .85rem; transition: var(--transition);
}
.word-item:hover { border-color: var(--gold); }
.word-item .de { font-weight: 700; color: var(--navy); }
.word-item .tr { color: var(--gray-400); font-size: .78rem; }
.word-item .cat-badge {
    font-size: .62rem; background: var(--gold-pale); color: var(--gold);
    border: 1px solid var(--gold-light); border-radius: 4px; padding: .1rem .35rem;
    font-weight: 700; white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   DİYALOG
═══════════════════════════════════════════════ */

/* Diyalog nav butonları — her zaman tek satırda */
.dial-nav-controls {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: nowrap;
}

.dial-counter {
    font-size: .9rem; font-weight: 700; color: var(--gray-600);
    padding: .35rem .75rem; background: var(--off-white);
    border: 1px solid var(--gray-200); border-radius: 20px;
    white-space: nowrap;
}

.dialogue-area {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}

.dial-card {
    border-radius: var(--radius-lg); padding: 1.5rem 2rem;
    margin-bottom: 1rem; position: relative;
}
.dial-card.question-card {
    background: var(--off-white); border: 2px solid var(--gray-200);
}
.dial-card.answer-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border: 2px solid var(--navy);
    animation: fadeIn .3s ease;
}

.dial-tag {
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: .75rem;
    display: inline-block; padding: .2rem .6rem; border-radius: 5px;
    background: var(--navy); color: var(--white);
}
.answer-tag { background: var(--gold); color: var(--navy); }

.dial-de {
    font-family: var(--font); font-size: 1.5rem; font-weight: 700;
    color: var(--navy); margin-bottom: .4rem; line-height: 1.3;
}
.dial-card.answer-card .dial-de { color: var(--white); }

.dial-tr {
    font-size: .95rem; color: var(--gray-600); font-weight: 500;
}
.dial-card.answer-card .dial-tr { color: rgba(255,255,255,.7); }

.dial-reveal-btn-wrap { text-align: center; margin: 1rem 0; }

.dial-answer-btns { justify-content: center; }

/* Diyalog Listesi */
.dial-list {
    display: flex; flex-direction: column; gap: .4rem;
    max-height: 400px; overflow-y: auto;
}
.dial-list-item {
    display: flex; gap: .75rem; padding: .6rem .75rem;
    border-radius: var(--radius); border: 1px solid var(--gray-200);
    cursor: pointer; transition: var(--transition); align-items: flex-start;
    background: var(--off-white);
}
.dial-list-item:hover  { border-color: var(--gold); background: var(--gold-pale); }
.dial-list-item.active { border-color: var(--navy); background: var(--navy); }
.dial-list-item.active .dial-list-q,
.dial-list-item.active .dial-list-a,
.dial-list-item.active .dial-list-num { color: var(--white) !important; }

.dial-list-num  { font-weight: 700; color: var(--gold); min-width: 22px; font-size: .85rem; margin-top: 2px; }
.dial-list-q    { font-size: .88rem; font-weight: 700; color: var(--navy); }
.dial-list-a    { font-size: .82rem; color: var(--gray-400); margin-top: .15rem; }

/* ═══════════════════════════════════════════════
   GRAMMAR TEST
═══════════════════════════════════════════════ */
.grammar-controls { display: flex; gap: .5rem; flex-wrap: wrap; }

.center-screen { display: flex; justify-content: center; padding: 2rem 0; }
.start-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem; text-align: center; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); max-width: 420px; width: 100%;
}
.start-icon { font-size: 3rem; margin-bottom: 1rem; }
.start-card h3 { margin-bottom: .75rem; }
.start-card p  { margin-bottom: .5rem; }
.hint-text { font-size: .85rem; color: var(--gray-400); }

.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.quiz-progress, .quiz-score-live { font-size: .9rem; font-weight: 700; color: var(--gray-600); }
.quiz-progress-bar { height: 6px; background: var(--gray-200); border-radius: 3px; margin-bottom: 1.5rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; transition: width .4s ease; }

.quiz-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.quiz-type-tag {
    display: inline-block; background: var(--navy); color: var(--white);
    font-size: .72rem; font-weight: 700; padding: .2rem .65rem;
    border-radius: 5px; margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase;
}
.quiz-question {
    font-family: var(--font); font-size: 1.25rem; font-weight: 700;
    color: var(--navy); margin-bottom: 1.5rem; line-height: 1.4;
}

.quiz-options { display: flex; flex-direction: column; gap: .6rem; }
.quiz-option {
    background: var(--off-white); border: 2px solid var(--gray-200);
    border-radius: var(--radius); padding: .75rem 1.25rem;
    cursor: pointer; transition: var(--transition);
    font-size: .95rem; font-weight: 600; text-align: left;
    color: var(--gray-800); font-family: var(--font);
}
.quiz-option:hover:not(:disabled) { border-color: var(--navy); background: var(--gold-pale); }
.quiz-option.correct { background: var(--green-light); border-color: var(--green); color: var(--green); }
.quiz-option.wrong   { background: var(--red-light);   border-color: var(--red);   color: var(--red); }
.quiz-option:disabled { cursor: not-allowed; }

.quiz-fill { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }

.quiz-feedback {
    margin-top: 1rem; padding: .75rem 1rem;
    border-radius: var(--radius); font-size: .9rem; font-weight: 600;
}
.quiz-feedback.correct-fb { background: var(--green-light); color: var(--green); border-left: 3px solid var(--green); }
.quiz-feedback.wrong-fb   { background: var(--red-light); color: var(--red); border-left: 3px solid var(--red); }

.result-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem; text-align: center; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); max-width: 500px; margin: 0 auto 1.5rem;
}
.result-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.result-card h3 { margin-bottom: 1.5rem; }
.result-stats { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.result-stat { text-align: center; }
.result-num { display: block; font-size: 2rem; font-weight: 700; color: var(--navy); }
.result-label { font-size: .8rem; color: var(--gray-400); font-weight: 600; }
.result-message { margin-bottom: 1.5rem; font-size: .95rem; }
.result-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

#wrong-answers-list { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); }
.wrong-item { padding: .75rem; border-bottom: 1px solid var(--gray-100); font-size: .88rem; }
.wrong-item:last-child { border-bottom: none; }
.wrong-item .w-question { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.wrong-item .w-your     { color: var(--red); }
.wrong-item .w-correct  { color: var(--green); }
.quiz-nav { display: flex; justify-content: flex-end; }

/* ═══════════════════════════════════════════════
   SENTENCE BUILDER
═══════════════════════════════════════════════ */
.sentence-controls { display: flex; gap: .5rem; flex-wrap: wrap; }

.sentence-area {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.sentence-instruction { margin-bottom: 1rem; font-size: .9rem; color: var(--gray-600); font-weight: 600; }

.sentence-target-card {
    background: var(--gold-pale); border: 1px solid var(--gold-light);
    border-radius: var(--radius); padding: 1rem 1.25rem;
    margin-bottom: 1.25rem; display: flex; gap: .75rem; align-items: baseline;
}
.target-label { font-size: .78rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.target-text  { font-family: var(--font); font-size: 1.1rem; color: var(--navy); font-weight: 700; }

.drop-zone-label, .word-bank-label {
    font-size: .75rem; font-weight: 700; color: var(--gray-600);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem;
}
.drop-zone {
    min-height: 64px; border: 2px dashed var(--gray-400);
    border-radius: var(--radius); padding: .75rem;
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    background: var(--off-white); margin-bottom: 1rem; transition: var(--transition);
}
.drop-zone.drag-over { border-color: var(--gold); background: var(--gold-pale); }
.drop-hint { color: var(--gray-400); font-size: .88rem; pointer-events: none; font-weight: 600; }

.word-bank { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; min-height: 44px; }

.word-chip {
    background: var(--navy); color: var(--white);
    padding: .45rem 1rem; border-radius: 20px;
    font-size: .88rem; font-weight: 700; cursor: pointer;
    border: none; transition: var(--transition);
    user-select: none; display: inline-flex; align-items: center;
    font-family: var(--font);
}
.word-chip:hover     { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.word-chip.in-zone   { background: var(--gold); color: var(--navy); }
.word-chip.in-zone:hover { background: var(--gold-light); }

.sentence-btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }

.sentence-feedback {
    padding: .75rem 1rem; border-radius: var(--radius);
    font-weight: 700; font-size: .95rem; margin-bottom: 1rem;
}
.sentence-feedback.correct-fb { background: var(--green-light); color: var(--green); }
.sentence-feedback.wrong-fb   { background: var(--red-light); color: var(--red); }

.sentence-answer {
    background: var(--gray-100); border-radius: var(--radius);
    padding: .75rem 1rem; font-size: .9rem; color: var(--gray-800); font-weight: 600;
}
.sentence-answer span { color: var(--navy); font-size: 1rem; margin-left: .5rem; font-weight: 700; }

/* ── Sonraki Soru Butonu ── */
.btn-next-sentence {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(201,168,76,.35);
    transition: transform .15s, box-shadow .15s, background .15s;
    letter-spacing: .02em;
}
.btn-next-sentence:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201,168,76,.45);
}
.btn-next-sentence:active {
    transform: translateY(0);
}
.btn-next-sentence i {
    font-size: .95rem;
}

.sentence-score-panel {
    display: flex; gap: 1rem; background: var(--white);
    border-radius: var(--radius); padding: 1rem 1.5rem;
    border: 1px solid var(--gray-200); justify-content: center;
}
.sent-stat { text-align: center; padding: .5rem 1.5rem; }
.sent-num  { display: block; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.sent-label { font-size: .75rem; color: var(--gray-400); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════
   BUTONLAR
═══════════════════════════════════════════════ */
.btn-primary, .btn-secondary, .btn-outline, .btn-nav {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.3rem; border-radius: var(--radius);
    font-family: var(--font); font-size: .88rem;
    font-weight: 700; cursor: pointer; border: none; transition: var(--transition);
    text-decoration: none;
}
.btn-primary   { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.btn-secondary:hover { background: rgba(255,255,255,.2); }
.btn-outline   { background: transparent; color: var(--navy); border: 2px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--navy); background: var(--off-white); }
.btn-nav       { background: var(--off-white); color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-nav:hover { border-color: var(--navy); color: var(--navy); }
.btn-nav.primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-nav.primary:hover { background: var(--navy-mid); }
.large { padding: .75rem 2rem !important; font-size: 1rem !important; }

/* ═══════════════════════════════════════════════
   FORM INPUTS
═══════════════════════════════════════════════ */
.select-input, .text-input {
    padding: .5rem .85rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius); font-size: .88rem;
    font-family: var(--font); font-weight: 600; color: var(--gray-800);
    background: var(--white); transition: var(--transition);
}
.select-input:focus, .text-input:focus { outline: none; border-color: var(--navy); }
.text-input.large { font-size: 1rem; padding: .65rem 1rem; width: 100%; }

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--navy); color: var(--white);
    padding: .75rem 1.5rem; border-radius: 30px;
    font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-lg);
    transition: transform .3s ease, opacity .3s ease; opacity: 0; z-index: 999;
    max-width: 90%; text-align: center; font-family: var(--font);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.gold-toast  { background: var(--gold); color: var(--navy); }
.toast.green-toast { background: var(--green); }
.toast.red-toast   { background: var(--red); }

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
    .hero-visual { display: none; }
    .header-inner { padding: .6rem 1rem; }
    .main-nav { gap: .2rem; }
    .nav-btn { padding: .32rem .6rem; font-size: .75rem; }
    #main-content { padding: 1.25rem 1rem 3rem; }
    .flashcard-wrapper { max-width: 100%; }
    .quiz-fill { flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .progress-cards { gap: .5rem; }
    .prog-card { padding: .6rem; }
    .prog-number { font-size: 1.4rem; }
    .feature-grid { grid-template-columns: 1fr; }
}
