/* Physics Y11 Module 3 — Component Styles */

.hero-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(15, 61, 86, 0.62);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

.hero-breadcrumb span {
  color: rgba(15, 61, 86, 0.34);
  margin: 0 6px;
}

.wave-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.wave-mini-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.wave-mini-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

.wave-mini-card p,
.wave-mini-card li {
  font-size: 14px;
  color: var(--text-muted);
}

.wave-mini-card ul {
  margin-left: 18px;
  margin-top: 8px;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.term-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.term-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.term-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.wave-figure {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.wave-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.worked-example {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 18px 0 24px;
}

.we-header {
  background: var(--surface-2);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.we-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.pt-badge {
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--cyan-bg);
  color: var(--cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.we-setup,
.we-solution,
.we-variation {
  padding: 18px 24px;
}

.we-setup {
  background: var(--primary-light);
  border-bottom: 1px solid rgba(15, 118, 110, 0.15);
}

.we-solution {
  border-bottom: 1px solid var(--border);
}

.we-variation {
  background: var(--accent-light);
}

.we-setup h4,
.we-solution h4,
.we-variation h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.we-setup h4 {
  color: var(--primary-mid);
}

.we-solution h4 {
  color: var(--text-muted);
}

.we-variation h4 {
  color: var(--accent-dark);
}

.we-setup p,
.we-variation p {
  font-size: 14px;
  color: var(--text-muted);
}

.we-setup ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.we-setup li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 3px 0 3px 14px;
  position: relative;
}

.we-setup li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.we-step {
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.we-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.we-step-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  font-family: 'Outfit', sans-serif;
}

.we-step-eq {
  font-family: 'DM Mono', monospace;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

.we-step-why {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.copy-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.copy-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.section-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-split h2 {
  margin: 0;
}

.sa-sm {
  min-height: 120px;
}

.sa-md {
  min-height: 160px;
}

.sa-lg {
  min-height: 210px;
}

.answers-trigger[data-toggle-body],
.formula-ref-trigger[data-toggle-body],
.collapsible-trigger[data-toggle-body] {
  cursor: pointer;
}

.lesson-nav .disabled-link {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Phase system ─────────────────────────────────────────── */

.phase { display: none; }
.phase.active { display: block; }

.phase-strip {
  display: flex;
  align-items: center;
  margin: 0 0 28px 0;
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.phase-step:hover { background: var(--surface-2); }

.ps-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.phase-step.active .ps-num {
  background: var(--accent);
  color: white;
}

.ps-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}

.phase-step.active .ps-label { color: var(--accent-dark); }

.ps-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 24px;
}

.phase-back-row {
  margin-bottom: 20px;
}

.phase-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.phase-next-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
}

.phase-next-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.phase-back-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}

.phase-back-btn:hover { background: var(--surface-2); }

.phase-retry-btn {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #713f12;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}

.phase-retry-btn:hover { background: #fef08a; }

.mc-score-banner {
  margin: 24px 0 4px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.mc-score-banner.pass {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.mc-score-banner.fail {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #713f12;
}

.mc-gate-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 24px;
}

.game-placeholder {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px dashed #bae6fd;
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  margin: 24px 0 32px;
}

.game-placeholder-icon {
  font-size: 52px;
  margin-bottom: 16px;
  line-height: 1;
}

.game-placeholder h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.game-placeholder p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.game-coming-soon {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-style: italic;
}

@media (max-width: 768px) {
  .wave-compare,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .we-step {
    grid-template-columns: 28px 1fr;
  }

  .phase-strip {
    padding: 10px 12px;
  }

  .ps-label {
    display: none;
  }

  .ps-connector {
    min-width: 12px;
  }
}
