/*
  theme-teal.css — retro candy: a deep, saturated teal background with
  a vivid HOT pink accent — deliberately not the soft pastel blush
  Bloom already owns. Dark bg + neon-candy accent is the opposite
  register from Bloom's white bg + gentle pastel, so the two shouldn't
  blur together even though both are "pink accent" themes. Lilita One
  (a single chunky retro-poster display face) over Nunito Sans. A
  touch softer/rounder than the site default, for a fun candy feel.

  The background is deliberately darker than the raw reference teal
  (#006b6b) — at that lightness, ANY vivid pink fails WCAG AA as
  accent-text (quiz timer, mark badges); lightening the pink enough to
  pass instead washed it out to a pastel, defeating the whole "hot
  candy, not soft blush" point. Darkening the background keeps the
  pink exactly as vivid as designed and arguably reads better anyway —
  neon-on-near-black rather than neon-on-midtone.

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

body[data-theme="teal"] {
  /* ---- Brand — hot candy pink, not pastel blush ---- */
  --accent:      #ff4fa3;
  --accent-dark: #e23387;
  --accent-soft: #ffa8d2;
  --success:     #4ade80;
  --danger:      #fb7185;
  --warning:     #fbbf24;

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

  --gradient-brand: linear-gradient(135deg, #e23387 0%, #ff4fa3 55%, #ff8ac2 100%);

  /* ---- Surfaces — deep near-black teal, for accent contrast (see
     header comment) ---- */
  --bg:        #003030;
  --bg-alt:    #002626;
  --bg-card:   #003d3d;
  --bg-card2:  #004747;
  --surface:   rgba(253,242,246,.05);
  --surface-hover: rgba(253,242,246,.08);
  --border:    rgba(253,242,246,.1);
  --border-strong: rgba(253,242,246,.2);

  /* ---- Text ---- */
  --text:      #fdf2f6;
  --text-muted: rgba(253,242,246,.62);
  --text-dim:  rgba(253,242,246,.42);

  /* ---- Shape — a touch rounder than the site default ---- */
  --radius:    20px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow:    0 10px 30px rgba(0,0,0,.4), 0 0 20px rgba(255,79,163,.15);

  --font-display: 'Lilita One', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
}

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

/* ---- Header / nav glass ---- */
body[data-theme="teal"] header {
  background: rgba(0,48,48,.82);
}

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

/* ---- Hero: neutralize the three.js shader with a teal/pink wash. ---- */
body[data-theme="teal"] #hero-canvas {
  display: none;
}
body[data-theme="teal"] .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(255,79,163,.18), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(255,79,163,.09), transparent 55%),
    var(--bg);
}
body[data-theme="teal"] .hero-grain {
  background-image:
    linear-gradient(rgba(253,242,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,242,246,.045) 1px, transparent 1px);
}
body[data-theme="teal"] .hero-heading em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255,79,163,.5);
}

/* ---- Custom cursor hover ring ---- */
body[data-theme="teal"] .custom-cursor-ring.cursor-hover {
  background: rgba(255,79,163,.14);
}

/* ---- Hero stats panel + level-tab indicator ---- */
body[data-theme="teal"] .hero-stats-panel {
  background: rgba(0,48,48,.55);
}
body[data-theme="teal"] .level-tab-indicator {
  box-shadow: 0 0 16px rgba(255,79,163,.4);
}

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

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

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