/* ═════════════════════════════════
   SİNAV PAGE STYLES
═════════════════════════════════ */
:root {
  --bg: #f7f5f0; --dark: #0f1f1e; --teal: #2a9d8f;
  --teal-glow: rgba(42,157,143,.18); --coral: #e76f51;
  --text: #1a1a2e; --muted: #6b6b8a; --border: rgba(26,26,46,.10);
  --surface: #ffffff; --gold: #c9963a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--dark); font-family: 'DM Sans', sans-serif; min-height: 100vh; }

/* ── NAV same as site ── */

/* ── HERO ── */
.test-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 60px;
  background: linear-gradient(150deg, #0f1f1e 0%, #0f2d2a 60%, #071412 100%);
  overflow: hidden;
}
.test-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.th-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,157,143,.12) 0%, transparent 65%);
  pointer-events: none;
}
.th-kanji {
  position: absolute;
  right: 6vw; top: 50%; transform: translateY(-50%);
  font-size: 9rem;
  color: rgba(42,157,143,.07);
  font-family: 'Playfair Display', serif;
  user-select: none;
  line-height: 1;
}
.test-hero-content { position: relative; z-index: 2; }
.th-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.test-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}
.test-hero h1 em { color: var(--teal); font-style: italic; }
.test-hero p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
}

/* ── MAIN AREA ── */
.test-main {
  background: var(--bg);
  padding: 60px 5vw 100px;
  min-height: 60vh;
}
.test-inner { max-width: 780px; margin: 0 auto; }

/* ── STEPS ── */
.step { display: none; }
.step.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD BASE ── */
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(26,26,46,.06);
}

/* ── STEP 1: INFO ── */
.info-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 10px;
}
.info-title em { color: var(--teal); font-style: italic; }
.info-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 34px;
  line-height: 1.6;
}
.fg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.fg label {
  font-size: 0.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}
.fg input {
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.fg input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ── LEVEL CARDS ── */
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.level-card {
  position: relative;
  padding: 28px 20px;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: none;
  text-align: center;
  transition: all .25s ease;
  background: var(--bg);
}
.level-card:hover { border-color: var(--teal); background: rgba(42,157,143,.04); transform: translateY(-3px); }
.level-card.selected { border-color: var(--teal); background: rgba(42,157,143,.07); }
.level-card .lc-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.level-card.selected .lc-badge { color: var(--teal); }
.level-card .lc-label {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.level-card .lc-desc {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
.lc-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem;
}
.level-card.selected .lc-check { display: flex; }

/* ── PROGRESS BAR ── */
.progress-wrap {
  margin-bottom: 36px;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
  transition: width .4s ease;
}

/* ── QUESTION ── */
.question-wrap { margin-bottom: 36px; }
.q-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: .15em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.q-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 28px;
}
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-opt {
  position: relative;
}
.q-opt input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.q-opt label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: none;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: all .2s;
  line-height: 1.4;
}
.q-opt label::before {
  content: '';
  width: 20px; height: 20px;
  border: 2px solid rgba(26,26,46,.2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .2s;
}
.q-opt input:checked + label {
  border-color: var(--teal);
  background: rgba(42,157,143,.06);
  color: var(--teal);
}
.q-opt input:checked + label::before {
  background: var(--teal);
  border-color: var(--teal);
}

/* ── NAV BUTTONS ── */
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 36px;
}
/* Step 1 btn-row sağa hizalı */
.btn-row.row-end { justify-content: flex-end; }
.btn-primary {
  flex: 1;
  padding: 16px 32px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: none;
  transition: all .3s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
/* Step 1 devam et butonu genişlik sınırı */
.btn-primary.sinav-btn { max-width: 240px; }
.btn-back {
  padding: 16px 28px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: none;
  transition: all .3s;
}
.btn-back:hover { border-color: var(--text); color: var(--text); }

/* ── RESULTS ── */
.result-top {
  text-align: center;
  padding: 48px 20px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.score-ring {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 24px;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.score-ring-fill { fill: none; stroke: var(--teal); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.score-center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-num {
  font-family: 'Space Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.score-denom {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.result-level-badge {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.badge-excellent { background: rgba(42,157,143,.12); color: var(--teal); }
.badge-good      { background: rgba(129,178,154,.15); color: #3d7a5c; }
.badge-average   { background: rgba(201,150,58,.12); color: var(--gold); }
.badge-needs-work { background: rgba(231,111,81,.1); color: var(--coral); }
.result-msg {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 10px;
}
.result-msg em { color: var(--teal); font-style: italic; }
.result-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 400px; margin: 0 auto; }

.result-answers { }
.ra-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.ra-item {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 4px solid transparent;
  background: var(--bg);
}
.ra-item.correct { border-color: var(--teal); }
.ra-item.wrong   { border-color: var(--coral); }
.ra-q { font-size: 0.88rem; color: var(--text); margin-bottom: 6px; }
.ra-ans {
  font-size: 0.8rem;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ra-yours { color: var(--muted); }
.ra-yours.ok  { color: var(--teal); }
.ra-yours.bad { color: var(--coral); }
.ra-right { color: var(--teal); }

.result-send-note {
  margin-top: 36px;
  text-align: center;
  padding: 24px;
  background: rgba(42,157,143,.06);
  border-radius: 14px;
  border: 1px dashed rgba(42,157,143,.25);
}
.result-send-note p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.result-send-note strong { color: var(--teal); }

/* ── RESPONSIVE ── */
.level-grid-2col { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
  .card { padding: 28px 20px; }
  .level-grid { grid-template-columns: 1fr; }
  .level-grid-2col { grid-template-columns: repeat(2, 1fr); }
  .q-opts { grid-template-columns: 1fr; }
  .test-main { padding: 40px 4vw 80px; }
  .th-kanji { font-size: 5rem; right: 3vw; }
}
@media (max-width: 480px) {
  .btn-row { flex-direction: column; }
  .level-grid-2col { grid-template-columns: 1fr; }
  .level-card { padding: 20px 16px; }
  .lc-badge { font-size: 1.3rem; }
  .score-num { font-size: 1.8rem; }
  .result-msg { font-size: 1.3rem; }
  .result-sub { font-size: 0.85rem; }
  .test-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
}
.step-err { color: var(--coral); font-size: .85rem; }
#step1-err { margin-top: 4px; }
#step2-err { margin-top: 16px; }

/* ── Tezliklə / disabled kart ── */
.level-card.disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.lc-soon {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,150,58,.35);
  border-radius: 100px;
  padding: 3px 10px;
  margin-top: 8px;
}
.btn-row.q-btns { margin-top: 32px; }
.btn-back:disabled { opacity: .3; cursor: not-allowed; }
.result-cta-wrap { text-align: center; margin-top: 32px; }
.result-cta-btn { display: inline-flex; text-decoration: none; max-width: 300px; }

/* ══ SORU GEÇİŞİ ANİMASYONU ══ */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.q-slide-in {
  animation: slideInRight 0.35s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* ══ SEÇİM VURGUSU ══ */
.q-opt label.opt-selected {
  border-color: var(--teal);
  background: rgba(42,157,143,.08);
}

/* ══ KISALTILMIŞ HAREKET TERCİHİ ══ */
@media (prefers-reduced-motion: reduce) {
  .q-slide-in { animation: none; }
  .q-opt label.opt-selected { transition: none; }
}
