/*
  theme-cobalt.css — varsity/athletic: a true deep navy (not Slate's
  desaturated navy-slate) with a shifted "varsity red" accent — not the
  literal reference red, since the existing Crimson theme already owns
  that exact hex; this one is nudged pinker/hotter so the two don't
  read as light/dark variants of the same red. Bold rounded Poppins
  over Rubik, soft pill shapes (the sportiest read here comes from
  color+weight, not sharp corners).

  The accent is lightened (coral-red, not the fully saturated red the
  reference/swatch imply) rather than darkened — on this dark navy bg,
  darkening the red toward the background only lowers contrast further;
  it needs to move AWAY from the bg's low luminance to clear WCAG AA as
  accent-text (quiz timer, mark badges).

  Scoped under `body[data-theme="cobalt"]`, set at runtime by
  js/theme_switcher.js. 100% additive.
*/

body[data-theme="cobalt"] {
  /* ---- Brand — varsity red on true navy ---- */
  --accent:      #ec7184;
  --accent-dark: #c41f39;
  --accent-soft: #f7aab5;
  --success:     #4ade80;
  --danger:      #e4344f;
  --warning:     #fbbf24;

  --primary: var(--accent);
  --primary-dark: var(--accent-dark);

  --gradient-brand: linear-gradient(135deg, #c41f39 0%, #ec7184 55%, #f7aab5 100%);

  /* ---- Surfaces — deep true navy, not near-black ---- */
  --bg:        #0b2a5b;
  --bg-alt:    #082047;
  --bg-card:   #123568;
  --bg-card2:  #183f76;
  --surface:   rgba(234,240,250,.045);
  --surface-hover: rgba(234,240,250,.075);
  --border:    rgba(234,240,250,.09);
  --border-strong: rgba(234,240,250,.18);

  /* ---- Text ---- */
  --text:      #eaf0fa;
  --text-muted: rgba(234,240,250,.62);
  --text-dim:  rgba(234,240,250,.42);

  --shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 20px rgba(236,113,132,.14);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, sans-serif;
}

body[data-theme="cobalt"] h1,
body[data-theme="cobalt"] h2,
body[data-theme="cobalt"] h3,
body[data-theme="cobalt"] h4 {
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ---- Header / nav glass ---- */
body[data-theme="cobalt"] header {
  background: rgba(11,42,91,.82);
}

/* ---- Primary button ---- */
body[data-theme="cobalt"] .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(236,113,132,.4);
}
body[data-theme="cobalt"] .btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 0 26px rgba(236,113,132,.55);
}
body[data-theme="cobalt"] .btn-secondary:hover {
  border-color: var(--accent-soft);
}

/* ---- Hero: neutralize the three.js shader with a navy/red wash. ---- */
body[data-theme="cobalt"] #hero-canvas {
  display: none;
}
body[data-theme="cobalt"] .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(236,113,132,.16), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(236,113,132,.08), transparent 55%),
    var(--bg);
}
body[data-theme="cobalt"] .hero-grain {
  background-image:
    linear-gradient(rgba(234,240,250,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,240,250,.045) 1px, transparent 1px);
}
body[data-theme="cobalt"] .hero-heading em {
  font-style: normal;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(236,113,132,.4);
}

/* ---- Custom cursor hover ring ---- */
body[data-theme="cobalt"] .custom-cursor-ring.cursor-hover {
  background: rgba(236,113,132,.12);
}

/* ---- Hero stats panel + level-tab indicator ---- */
body[data-theme="cobalt"] .hero-stats-panel {
  background: rgba(11,42,91,.55);
}
body[data-theme="cobalt"] .level-tab-indicator {
  box-shadow: 0 0 16px rgba(236,113,132,.4);
}

/* ---- Badges/chips/progress bars — light-tinted, not accent-tinted ---- */
body[data-theme="cobalt"] .topic-progress-bar,
body[data-theme="cobalt"] .quiz-progress-bar,
body[data-theme="cobalt"] .mini-bar-track {
  background: rgba(234,240,250,.09);
}
body[data-theme="cobalt"] .score-circle-bg {
  stroke: rgba(234,240,250,.09);
}
body[data-theme="cobalt"] .topic-progress-table th {
  background: rgba(234,240,250,.035);
}
body[data-theme="cobalt"] .topic-progress-table tr:hover td {
  background: rgba(234,240,250,.04);
}
body[data-theme="cobalt"] .answer-chip {
  background: rgba(234,240,250,.07);
}
body[data-theme="cobalt"] .answer-chip-remove {
  background: rgba(234,240,250,.12);
}
body[data-theme="cobalt"] .format-help-panel code {
  background: rgba(234,240,250,.08);
}
body[data-theme="cobalt"] .topic-chip {
  background: rgba(234,240,250,.07);
}
body[data-theme="cobalt"] .ai-points {
  border-top-color: rgba(234,240,250,.12);
}
body[data-theme="cobalt"] .toast {
  background: rgba(11,42,91,.92);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

/* ---- Accent-tinted glows/focus-rings ---- */
body[data-theme="cobalt"] .marks-badge,
body[data-theme="cobalt"] .option-btn:hover:not(:disabled),
body[data-theme="cobalt"] .setup-option:hover,
body[data-theme="cobalt"] .setup-option.selected,
body[data-theme="cobalt"] .symbol-btn:hover,
body[data-theme="cobalt"] .explanation-box.feedback-reveal {
  background: rgba(236,113,132,.13);
}
body[data-theme="cobalt"] .quiz-timer {
  border-color: rgba(236,113,132,.35);
}
body[data-theme="cobalt"] .explanation-box {
  background: rgba(236,113,132,.08);
  border-color: rgba(236,113,132,.32);
}
body[data-theme="cobalt"] .explanation-box.feedback-reveal {
  border-color: rgba(236,113,132,.42);
}
body[data-theme="cobalt"] .answer-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236,113,132,.2);
}
body[data-theme="cobalt"] .quiz-progress-fill {
  box-shadow: 0 4px 16px rgba(236,113,132,.4);
}

/* Difficulty badges — generic dark-tuned triple, reused verbatim. */
body[data-theme="cobalt"] .diff-easy   { background: rgba(34,197,94,.18);  color: #4ade80; }
body[data-theme="cobalt"] .diff-medium { background: rgba(242,194,24,.18); color: #fadb5f; }
body[data-theme="cobalt"] .diff-hard   { background: rgba(244,65,95,.18);  color: #fb7185; }
