/* ══════════════════════════════════════════════════════════════
   WHO AM I? QUIZ - Standalone Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Quiz Hero ──────────────────────────────────────────────── */
.quiz-hero {
  background: linear-gradient(135deg, #1a3c5e 0%, #2952a3 100%);
  color: #fff; padding: 5rem 0 3.5rem; text-align: center;
}
.quiz-hero .eyebrow { color: rgba(255,255,255,0.7); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.quiz-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 0.75rem; }
.quiz-hero .lead { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 1rem; font-size: 1.05rem; line-height: 1.6; }
.quiz-scoring-note { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }
.quiz-scoring-note strong { color: #f0c060; }

/* ── Section titles ─────────────────────────────────────────── */
.quiz-section-title { font-size: 1.6rem; text-align: center; margin-bottom: 0.4rem; }
.quiz-section-sub { text-align: center; color: var(--muted, #6b7280); margin-bottom: 2rem; }

/* ── Sport picker grid ──────────────────────────────────────── */
.quiz-sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.quiz-sport-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem; padding: 1.5rem 1rem;
  background: var(--card, #fff);
  border: 2px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 10px);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.quiz-sport-card:hover {
  border-color: #2952a3;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(41,82,163,0.15);
}
.quiz-sport-icon { font-size: 2.2rem; }
.quiz-sport-name { font-weight: 700; font-size: 0.9rem; color: var(--charcoal, #1a1a2e); }
.quiz-sport-count { font-size: 0.72rem; color: var(--muted, #6b7280); }

/* ── Progress bar ───────────────────────────────────────────── */
.quiz-progress-wrap { margin-bottom: 1.75rem; }
.quiz-progress-info {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; font-weight: 600; color: var(--muted, #6b7280);
  margin-bottom: 0.4rem;
}
.quiz-progress-bar {
  height: 6px; background: var(--border, #e5e7eb);
  border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem;
}
.quiz-progress-fill {
  height: 100%; background: #2952a3;
  border-radius: 3px; transition: width 0.4s ease;
  width: 0%;
}
.quiz-score-display {
  text-align: right; font-size: 0.85rem; color: var(--muted, #6b7280);
}
.quiz-score-display strong { color: #2952a3; font-size: 1rem; }

/* ── Clue card ──────────────────────────────────────────────── */
.quiz-card {
  background: var(--card, #fff);
  border: 2px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.quiz-clue-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem;
}
.quiz-clue-badges { display: flex; gap: 0.4rem; }
.quiz-clue-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  background: var(--bg2, #f3f4f6);
  color: var(--muted, #6b7280);
  border: 1.5px solid var(--border, #e5e7eb);
  transition: all 0.2s;
}
.quiz-clue-badge.active {
  background: #2952a3; color: #fff; border-color: #2952a3;
}
.quiz-clue-badge.revealed {
  background: #eef2fb; color: #2952a3; border-color: rgba(41,82,163,0.3);
}
.quiz-points-available {
  font-size: 0.82rem; color: var(--muted, #6b7280);
}
.quiz-points-available strong { color: #c8933a; font-size: 1rem; }

.quiz-clue-text {
  font-size: 1.15rem; line-height: 1.7;
  color: var(--charcoal, #1a1a2e);
  min-height: 3.5rem;
  margin-bottom: 1.25rem;
}

.quiz-next-clue {
  font-size: 0.82rem !important;
  color: var(--muted, #6b7280) !important;
  border-color: var(--border, #e5e7eb) !important;
}
.quiz-next-clue:hover {
  border-color: #2952a3 !important;
  color: #2952a3 !important;
}

/* ── Answer options ─────────────────────────────────────────── */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.quiz-option {
  padding: 0.9rem 1rem;
  background: var(--card, #fff);
  border: 2px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 10px);
  font-size: 0.95rem; font-weight: 600;
  color: var(--charcoal, #1a1a2e);
  cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: 1.3;
}
.quiz-option:hover:not(:disabled) {
  border-color: #2952a3; background: #eef2fb; color: #2952a3;
}
.quiz-option:disabled { cursor: default; }
.quiz-option.correct {
  background: #e8f5e9; border-color: #2e7d32; color: #1b5e20;
}
.quiz-option.wrong {
  background: #fce4ec; border-color: #c2185b; color: #880e4f;
}

/* ── Feedback ───────────────────────────────────────────────── */
.quiz-feedback {
  display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem;
}
.quiz-feedback-inner {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius, 10px);
  font-size: 0.95rem; line-height: 1.5;
}
.quiz-feedback-inner.correct {
  background: #e8f5e9; border: 1.5px solid #a5d6a7; color: #1b5e20;
}
.quiz-feedback-inner.wrong {
  background: #fce4ec; border: 1.5px solid #f48fb1; color: #880e4f;
}
.quiz-feedback-inner p { margin: 0.2rem 0 0; color: inherit; opacity: 0.9; }
.quiz-fb-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }

/* ── Results card ───────────────────────────────────────────── */
.quiz-results-card {
  background: var(--card, #fff);
  border: 2px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 640px; margin: 0 auto;
}
.quiz-results-icon { font-size: 4rem; margin-bottom: 0.75rem; }
.quiz-results-card h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.quiz-results-score {
  font-family: var(--font-head, Georgia);
  font-size: 4rem; font-weight: 700;
  color: #2952a3; line-height: 1;
  margin: 0.5rem 0 0.25rem;
}
.quiz-results-max { font-size: 1.5rem; color: var(--muted, #6b7280); }
.quiz-results-msg {
  color: var(--muted, #6b7280); max-width: 440px;
  margin: 0.75rem auto 1.5rem; line-height: 1.6;
}

/* Results breakdown table */
.quiz-results-breakdown { margin: 1.5rem 0; overflow-x: auto; text-align: left; }
.quiz-breakdown-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.quiz-breakdown-table th {
  background: #1a3c5e; color: #fff;
  padding: 0.6rem 0.75rem; font-size: 0.78rem; font-weight: 700; text-align: left;
}
.quiz-breakdown-table td {
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 0.55rem 0.75rem; color: var(--body, #374151);
}
.quiz-breakdown-table tfoot td {
  border-top: 2px solid var(--border, #e5e7eb);
  border-bottom: none; padding-top: 0.75rem;
}
.row-correct td:first-child { border-left: 3px solid #2e7d32; }
.row-wrong   td:first-child { border-left: 3px solid #c2185b; }

.quiz-results-actions {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.5rem;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .quiz-sport-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-card { padding: 1.25rem; }
  .quiz-results-card { padding: 2rem 1.25rem; }
  .quiz-results-score { font-size: 3rem; }
  .quiz-hero { padding: 3.5rem 0 2.5rem; }
  .quiz-results-actions { flex-direction: column; align-items: stretch; }
  .quiz-results-actions .btn { text-align: center; }
}

/* ── Print — hide quiz UI ───────────────────────────────────── */
@media print {
  .quiz-hero, .quiz-sport-grid, #quiz-arena,
  #quiz-results, .quiz-results-actions { display: none !important; }
}

/* Revealed clue badges are clickable — show hover state */
.quiz-clue-badge.revealed {
  cursor: pointer;
}
.quiz-clue-badge.revealed:hover {
  background: #2952a3;
  color: #fff;
  border-color: #2952a3;
}
