/* Physics Y11 Module 4 — Electricity and Magnetism Component Styles */

/* ── Field Diagram Placeholder ── */
.field-diagram-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 28px 24px;
  margin: 16px 0;
}
.fd-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.fd-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 14px;
}
.fd-rect {
  width: 100%;
  height: 100px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  font-style: italic;
}

/* ── Circuit Diagram Placeholder ── */
.circuit-diagram-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 28px 24px;
  margin: 16px 0;
}
.cd-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cd-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 14px;
}
.cd-rect {
  width: 100%;
  height: 120px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  font-style: italic;
}

/* ── V-I Graph Placeholder ── */
.vi-graph-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 28px 24px;
  margin: 16px 0;
}
.vg-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.vg-rect {
  width: 100%;
  height: 140px;
  background: var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  font-style: italic;
}

/* ── Formula Panel (Module 4 violet accent) ── */
.formula-panel {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
}
.formula-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.formula-panel-icon {
  font-size: 20px;
  line-height: 1;
}
.formula-panel h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.formula-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.formula-eq {
  background: white;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 13.5px;
  color: var(--text);
}

/* ── Right-Hand Rule Callout ── */
.rhr-callout {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  border-left: 4px solid #7c3aed;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 16px 0;
}
.rhr-callout h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #5b21b6;
  margin: 0 0 10px;
}
.rhr-callout p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 6px;
}
.rhr-callout p:last-child {
  margin-bottom: 0;
}

/* ── Misconception item overrides for violet theme ── */
.misconception-wrong::before {
  content: '\2717  ';
  color: #be185d;
}
