/* ============================================================
   quiz.css — Parents Quiz (issue #33)
   Standalone stylesheet — deliberately does not @import or link
   style.css (that file is being edited in parallel by another
   agent). Tokens below are copied from style.css's :root /
   :root[data-theme="dark"] blocks (Golden Hour system) so this
   page matches the site's visual language without depending on
   the other file's current state.
============================================================ */

:root {
  --coral:        #C2410C;
  --coral-dim:    #9A3412;
  --coral-glow:   rgba(194,65,12,0.22);
  --coral-soft:   rgba(194,65,12,0.10);
  --amber:        #B45309;
  --teal:         #115E59;
  --teal-glow:    rgba(17,94,89,0.18);
  --red:          #B91C1C;
  --green:        #15803D;
  --bg:           #FBF2E3;
  --bg-card:      #FFFCF6;
  --bg-card-2:    #F3E3C4;
  --bg-elevated:  #ECD6A8;
  --text:         #241A0E;
  --text-muted:   #6B5843;
  --text-dim:     #A08966;
  --border:       rgba(36,26,14,0.12);
  --border-hi:    rgba(36,26,14,0.22);
  --on-accent:    #fff;
  --max-w:        640px;
  --radius:       14px;
  --radius-sm:    8px;
}
:root[data-theme="dark"] {
  --coral:        #8B5CF6;
  --coral-dim:    #7C3AED;
  --coral-glow:   rgba(139,92,246,0.18);
  --coral-soft:   rgba(139,92,246,0.08);
  --amber:        #F59E0B;
  --teal:         #14B8A6;
  --teal-glow:    rgba(20,184,166,0.18);
  --red:          #EF4444;
  --green:        #10B981;
  --bg:           #0c0c14;
  --bg-card:      #13131f;
  --bg-card-2:    #1a1a2e;
  --bg-elevated:  #21213a;
  --text:         #E2E8F0;
  --text-muted:   #94A3B8;
  --text-dim:     #4B5563;
  --border:       rgba(255,255,255,0.07);
  --border-hi:    rgba(255,255,255,0.13);
  --on-accent:    #fff;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(194,65,12,0.06) 0%, transparent 68%);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

.quiz-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: var(--max-w); margin: 0 auto;
}
.quiz-back {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; letter-spacing: 0.01em;
}
.quiz-back:hover { color: var(--coral); }

.quiz-shell {
  max-width: var(--max-w); margin: 0 auto;
  padding: 8px 20px 64px;
}

/* Progress dots */
.quiz-progress {
  display: flex; gap: 6px; justify-content: center; margin: 4px 0 28px;
}
.quiz-progress-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-hi);
  transition: background 0.2s;
}
.quiz-progress-dot.done { background: var(--coral); }
.quiz-progress-dot.current { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }

.quiz-step {
  animation: quizStepIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes quizStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral); margin: 0 0 6px;
}
.quiz-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; letter-spacing: 0.01em; line-height: 1.1;
  margin: 0 0 8px; color: var(--text);
}
.quiz-sub {
  font-size: 13px; color: var(--text-muted); margin: 0 0 22px; line-height: 1.55;
}

/* Option chips (single + multi select) */
.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 18px;
}
.quiz-options.quiz-options-1col { grid-template-columns: 1fr; }
.quiz-chip {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; line-height: 1.3;
}
.quiz-chip:hover { border-color: var(--coral); }
.quiz-chip.selected {
  border-color: var(--coral); background: var(--coral-soft); color: var(--coral-dim);
}
:root[data-theme="dark"] .quiz-chip.selected { color: var(--coral); }
.quiz-chip-sub { display: block; font-size: 11px; font-weight: 500; color: var(--text-dim); margin-top: 2px; }

/* Home-area step: geolocation + divider + select */
.quiz-geo-btn {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--coral); border-radius: var(--radius-sm);
  background: var(--coral); color: var(--on-accent);
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-bottom: 14px; transition: background 0.15s;
}
.quiz-geo-btn:hover { background: var(--coral-dim); }
.quiz-geo-btn:disabled { opacity: 0.6; cursor: wait; }
.quiz-geo-status {
  font-size: 12px; color: var(--text-muted); margin: -6px 0 14px; min-height: 16px;
}
.quiz-geo-status.error { color: var(--red); }
.quiz-geo-status.ok { color: var(--green); }
.quiz-divider {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim); margin: 4px 0 14px;
}
.quiz-divider::before, .quiz-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.quiz-select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 600;
  margin-bottom: 6px;
}
.quiz-select:focus { outline: none; border-color: var(--coral); }

/* Nav row */
.quiz-nav-row {
  display: flex; gap: 10px; margin-top: 8px;
}
.quiz-btn {
  flex: 1; min-height: 48px; padding: 12px 18px;
  border-radius: var(--radius-sm); font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.quiz-btn-primary {
  border: 1px solid var(--coral); background: var(--coral); color: var(--on-accent);
}
.quiz-btn-primary:hover { background: var(--coral-dim); }
.quiz-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-btn-ghost {
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
}
.quiz-btn-ghost:hover { border-color: var(--border-hi); color: var(--text); }

/* Summary screen — replaces the old per-event results list (issue #33 fix
   round). This page no longer scores events itself; it just confirms the
   answers and hands off to index.html's Browse/Highlights. */
.quiz-results-header { margin-bottom: 18px; }
.quiz-summary-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 4px 18px; margin-bottom: 22px;
}
.quiz-summary-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.quiz-summary-row:last-child { border-bottom: none; }
.quiz-summary-label { color: var(--text-muted); font-weight: 600; }
.quiz-summary-value { color: var(--text); font-weight: 600; text-align: right; }

/* Retake / share / reset footer */
.quiz-footer-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-footer-row .quiz-btn { flex: 1 1 auto; }
/* Copy-link fallback (onShare's showFallback) — pre-existing, never had a
   rule; picked up while this file was already open for the fix round. */
.quiz-share-fallback { width: 100%; margin-top: 4px; }

@media (min-width: 640px) {
  .quiz-title { font-size: 36px; }
  .quiz-shell { padding-top: 24px; }
}
