/* =============================================================
   MediaKlas — shared step-flow engine (CSS)
   Wordt gebruikt door alle lessen voor consistente navigatie,
   blokkering en progress-indicatie.
   ============================================================= */

/* ===== STEP-PROGRESS BALK ===== */
.mk-progress {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px 14px 0 0;
  padding: 14px 18px 18px;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 auto;
}
.mk-dot {
  flex: 1;
  background: rgba(255,255,255,0.08);
  height: 6px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .25s ease, opacity .2s;
}
.mk-dot.done { background: rgba(0,255,140,0.35); }
.mk-dot.active { background: linear-gradient(90deg, #fe2c55, #25f4ee); }
.mk-dot.locked { cursor: not-allowed; opacity: 0.4; }
.mk-dot.locked:hover { background: rgba(255,255,255,0.08); }
.mk-dot::after {
  content: attr(data-num);
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.mk-dot.active::after { color: #25f4ee; font-weight: 700; }
.mk-dot.done::after { color: #00ff8c; }

/* ===== STEP PAGES ===== */
.mk-page { display: none; }
.mk-page.active { display: block; animation: mkPageIn .35s ease; }
@keyframes mkPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== STEP-NAV ONDERAAN ===== */
.mk-nav {
  position: sticky; bottom: 12px; z-index: 50;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(11,13,18,0) 0%, #0b0d12 35%);
  padding: 18px 0 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px;
  align-items: center;
}
.mk-nav-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: inherit; font-weight: 800; font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.mk-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); }
.mk-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.mk-nav-btn.primary {
  background: linear-gradient(135deg, #fe2c55, #b13eff);
  color: #fff;
  border: 0;
}
.mk-nav-btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(254,44,85,0.35); }
.mk-nav-btn.primary:disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  box-shadow: none;
}
.mk-step-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  min-width: 60px;
}
.mk-step-counter strong { color: #25f4ee; }

.mk-hint {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  color: rgba(255,206,0,0.85);
  margin-top: 4px;
  min-height: 16px;
  transition: color .2s ease, transform .2s ease;
}
.mk-hint.flash {
  animation: mkHintFlash .6s ease;
  color: #ffce00;
  font-weight: 700;
}
@keyframes mkHintFlash {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ===== STEP-PILL (intro per pagina) ===== */
.mk-pill {
  display: inline-block;
  background: linear-gradient(135deg, #fe2c55, #b13eff);
  padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: 11px; color: #fff;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

/* ===== UTILITY ===== */
.mk-h1 {
  font-family: 'Inter', sans-serif;
  font-size: 24px; font-weight: 800;
  color: #fff; margin-bottom: 8px;
  line-height: 1.2;
}
.mk-h1 .accent { background: linear-gradient(135deg, #fe2c55, #25f4ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mk-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px; opacity: 0.78; line-height: 1.55;
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .mk-h1 { font-size: 20px; }
  .mk-progress { padding: 14px 12px 18px; }
}

/* ===== GLOBALE FIX voor summary-blokken in alle lessen =====
   Voorkomt dat <strong>-tags binnen <li> als aparte grid-cellen
   over meerdere regels breken. Werkt in elke les zonder lokale CSS aan te passen. */
.summary-block ul li {
  display: block !important;
  padding: 6px 0 6px 28px !important;
  position: relative !important;
  grid-template-columns: none !important;
}
.summary-block ul li::before {
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  display: inline !important;
}
