/* ═══════════════════════════════════════════════════════
   sinav.css — SPK Sınav Sistemi
   Sınav ekranına özel stiller
   ═══════════════════════════════════════════════════════ */

/* ── GENEL ────────────────────────────────────────────── */
.sinav-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR EKLENTİLERİ ───────────────────────────────── */
.timer-box {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  display: none;
}

.timer-box.on   { display: block; }
.timer-box.warn {
  color: var(--red);
  border-color: rgba(248, 81, 73, 0.3);
  background: var(--red-dim);
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-ad {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.04em;
}

.btn-cikis {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.04em;
}

.btn-cikis:hover {
  color: var(--text2);
  border-color: var(--border2);
}

/* ── EKRANLAR ─────────────────────────────────────────── */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* ══════════════════════════════════════════════════════
   EKRAN 1 — BAŞLANGIÇ
══════════════════════════════════════════════════════ */
.start-screen {
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.start-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.start-head {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
}

.start-head h2 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.start-head p {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.6;
}

.start-body {
  padding: 1.75rem 2rem;
}

/* mod seçimi */
.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.mod-tab {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.mod-tab:hover {
  border-color: var(--border2);
}

.mod-tab.sel {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.mod-icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
  opacity: 0.7;
}

.mod-title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
  color: var(--text2);
}

.mod-tab.sel .mod-title {
  color: var(--accent);
}

.mod-desc {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
}

/* bilgi şeridi */
.info-strip {
  display: flex;
  gap: 6px;
  margin: 1.25rem 0 1.5rem;
  flex-wrap: wrap;
}

.info-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text3);
  background: var(--bg3);
}

.info-pill.hi {
  color: var(--accent);
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}

/* ══════════════════════════════════════════════════════
   EKRAN 2 — SINAV
══════════════════════════════════════════════════════ */
.exam-screen {
  flex-direction: column;
}

/* progress bar */
.exam-prog {
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

.exam-prog-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* sınav gövdesi */
.exam-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 740px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  overflow-y: auto;
}

/* soru sayacı + dot nav */
.q-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 10px;
}

.q-counter-info {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
}

.q-counter-info span {
  color: var(--text2);
}

.dot-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 440px;
  justify-content: flex-end;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.dot:hover         { border-color: var(--border2); color: var(--text2); }
.dot.answered      { background: var(--accent-dim); border-color: var(--accent-mid); color: var(--accent); }
.dot.current       { background: var(--accent); color: #0c0c0c; border-color: var(--accent); font-weight: 600; }
.dot.skipped       { background: var(--red-dim); border-color: rgba(248,81,73,.2); color: var(--red); }

/* soru kartı */
.q-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.q-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.q-num-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text3);
  text-transform: uppercase;
}

.diff-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pip-kolay { background: var(--green); }
.pip-orta  { background: var(--amber); }
.pip-zor   { background: var(--red); }

.diff-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.q-text {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* seçenekler */
.opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: all 0.15s;
}

.opt:hover {
  border-color: var(--border2);
  background: var(--bg4);
}

.opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.opt-letter {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  min-width: 18px;
  padding-top: 1px;
  flex-shrink: 0;
}

.opt.selected .opt-letter {
  color: var(--accent);
}

.opt-text {
  font-size: 13.5px;
  line-height: 1.6;
}

/* footer navigasyon */
.exam-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-bottom: 1rem;
}

.footer-left  { display: flex; gap: 8px; }
.footer-right { display: flex; gap: 8px; }

/* ══════════════════════════════════════════════════════
   EKRAN 3 — SONUÇ
══════════════════════════════════════════════════════ */
.result-screen {
  flex-direction: column;
  overflow: hidden;
}

.result-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.result-wrap {
  width: 100%;
  max-width: 680px;
}

/* skor hero */
.result-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.result-score {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.result-score-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-verdict {
  font-size: 14px;
  color: var(--text2);
  margin-top: 0.85rem;
}

/* stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 1.5rem;
}

.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-val {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* konu performans */
.perf-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.perf-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* yanlış sorular */
.wrong-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.wrong-head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
}

.wrong-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wrong-item:last-child {
  border-bottom: none;
}

.wrong-q {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text);
}

.wrong-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wmeta {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.wmeta-user    { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(248,81,73,.2); }
.wmeta-correct { background: var(--green-dim); color: var(--green); border: 1px solid rgba(63,185,80,.2); }

/* sonuç aksiyonlar */
.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}