/* ============================================================
   Chem Y11 Module 1 — Component Styles
   Loaded after lesson.css + chem-y11-m1-theme.css
   Overrides shared components where Chem M1 design differs
   ============================================================ */

/* ── Game Launch Card ─────────────────────────────────────── */
.game-launch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 50%, #f5f3ff 100%);
  border: 2px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  padding: 48px 40px;
  margin: 8px 0 24px;
}
.game-launch-icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(99,102,241,0.25));
}
.game-launch-tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: #4338ca;
  border: 1.5px solid rgba(99,102,241,0.30);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.game-launch-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
  line-height: 1.25;
}
.game-launch-desc {
  font-size: 16px;
  color: #475569;
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}
.game-launch-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 6px;
}
.game-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}

/* Hero decoration circles */
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(42,122,172,0.08); }
.hero::after  { content: ''; position: absolute; bottom: -40px; left: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(138,96,200,0.08); }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge-white { background: rgba(42,122,172,0.15); color: var(--primary-dark); border: 1px solid rgba(42,122,172,0.25); }
.badge-time  { background: rgba(74,154,106,0.15); color: #1a4a2a; border: 1px solid rgba(74,154,106,0.25); }
.hero-desc { color: var(--text-muted); font-size: 15.5px; max-width: 540px; line-height: 1.6; }

/* Intentions Grid */
.intentions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.intention-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--primary); }
.intention-card.amber-top { border-top-color: var(--accent); }
.intention-card.green-top { border-top-color: var(--secondary); }
.intention-card h3 { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.intention-card ul { list-style: none; }
.intention-card li { color: var(--text-muted); font-size: 13.5px; padding: 5px 0 5px 16px; position: relative; line-height: 1.45; border-bottom: 1px solid var(--border); }
.intention-card li:last-child { border-bottom: none; }
.intention-card li::before { content: '›'; position: absolute; left: 0; font-weight: 700; color: var(--primary); }
.intention-card.amber-top li::before { color: var(--accent); }
.intention-card.green-top li::before { color: var(--secondary); }

/* Worked Examples — Chem M1 variant (we-* classes) */
.worked-example { background: var(--surface); border: 1px solid rgba(138,96,200,0.25); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.we-header { background: linear-gradient(135deg, #6cb8e0, #8a60c8); padding: 14px 22px; display: flex; align-items: center; gap: 10px; }
.we-header-num { background: rgba(255,255,255,0.2); color: white; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-display); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.we-header h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: white; margin: 0; }
.we-body { padding: 22px 24px; }
.we-problem { background: var(--accent-light); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-style: italic; color: var(--text-muted); font-size: 14.5px; border-left: 3px solid var(--accent); }
.we-step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.we-step:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.we-step-num { width: 26px; height: 26px; background: var(--accent); color: white; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.we-step-content { flex: 1; }
.we-step-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 3px; font-family: var(--font-display); }
.we-step-text { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.we-answer { margin-top: 16px; background: rgba(138,96,200,0.07); border: 2px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px; }
.we-answer-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.we-answer-text { font-size: 14.5px; color: var(--text); font-weight: 500; line-height: 1.5; }

/* Common Mistakes */
.mistakes-box { background: var(--danger-light); border: 1px solid rgba(220,38,38,0.2); border-left: 4px solid var(--danger); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 20px; }
.mistakes-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mistakes-header h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--danger); margin: 0; }
.mistake-item { display: flex; gap: 12px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.mistake-item:last-child { margin-bottom: 0; }
.mistake-bullet { flex-shrink: 0; color: var(--danger); font-size: 16px; margin-top: 1px; }
.mistake-item strong { color: var(--text); }

/* Marks badge */
.marks { display: inline-flex; align-items: center; background: var(--secondary); color: white; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; font-family: var(--font-display); float: right; margin-top: 2px; }

/* Answers section — uses secondary (green) colour */
.answers-trigger { border: 2px solid var(--secondary); }
.answers-trigger:hover { background: var(--secondary-light); }
.answers-trigger .arrow { color: var(--secondary); }
.answers-body { border: 2px solid var(--secondary); border-top: none; }
.answer-item { border-left: 3px solid var(--secondary); }
.answer-item h4 { color: var(--secondary); }

/* Completion — uses secondary (green) colour */
.completion-checkbox.checked { background: var(--secondary); border-color: var(--secondary); }
.completion-wrap.done { border-color: var(--secondary); background: var(--secondary-light); }

/* Step-reveal */
.reveal-btn { display: inline-block; margin-top: 10px; padding: 7px 18px; background: #534AB7; color: #fff; border: none; border-radius: 6px; font-family: inherit; font-size: 0.93rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.reveal-btn:hover { background: #3C3489; }
.we-step.revealed { animation: revealStep .35s ease both; }
@keyframes revealStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive overrides */
@media (max-width: 768px) {
  .intentions-grid { grid-template-columns: 1fr; }
}
