/* ── HSC Chemistry Y11 M2 — module-wide glassmorphism ──────────
   Salt-flat backdrop with frosted-glass panels.
   Drop the module's background image at:
     assets/backgrounds/chem-m2-bg.webp
──────────────────────────────────────────────────────────── */

/* 1. Module background — salt flat photo, very light overlay */
body {
  background:
    linear-gradient(rgba(186, 220, 255, 0.10), rgba(186, 220, 255, 0.10)),
    url('../../../../assets/backgrounds/chem-m2-bg.webp') center/cover fixed,
    #e0f2fe;
}

/* 2. Override theme surface tokens for more glass, less paper */
:root {
  --accent-bg:     rgba(255, 255, 255, 0.78);
  --surface:       rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
}

/* 3. Main cards — frosted glass on the salt flats */
.card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 32px rgba(30, 58, 138, 0.10), inset 0 1px 0 rgba(255,255,255,0.95);
}

/* 4. Think First — glass + readable on pastel backdrop */
.think-first {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
}
.tf-label {
  background: rgba(56, 189, 248, 0.18);
  color: #0c4a6e;
}
.think-first h3  { color: #0c4a6e; }
.think-first p   { color: #1e3a5f; }
.think-first strong { color: #0c4a6e; }
.think-first .answer-textarea {
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(56, 189, 248, 0.32);
  color: #1e3a5f;
}
.think-first .answer-textarea::placeholder { color: rgba(12, 74, 110, 0.45); }
.think-first .autosave-indicator { color: rgba(12, 74, 110, 0.55); }

/* 5. Intention cards */
.intention-card {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 6. Mode banner */
.mode-banner {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 7. Worksheet card */
.worksheet-download-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 8. Callouts inside cards — white base so they stay readable */
.callout-mint, .callout-sky, .callout-peach, .callout-coral,
.callout-amber, .callout-blue, .callout-green, .callout-purple {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 9. Copy section */
.copy-section > summary,
.copy-body {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 10. MC questions */
.mc-question {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 11. Answers accordion */
.answers-section > summary {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 12. Phase strip — soft sky glass */
.phase-strip {
  background: rgba(15, 60, 100, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 20px;
}
.phase-step { color: rgba(255, 255, 255, 0.82); }
.phase-step.active { background: rgba(255,255,255,0.94); color: #0c4a6e; border-radius: 10px; }
.ps-connector { background: rgba(255, 255, 255, 0.22); }

/* 13. Section labels stay readable between cards */
p.section-label {
  text-shadow: 0 1px 4px rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
}
