/* ============================================================
   BidWatchHQ Course Enhancements
   Scenario Decision Slides + Knowledge Checks +
   Time Estimates + Completion Tracking
   Aligned with Knowles' Andragogy & existing slide design
   ============================================================ */

/* ── Time estimate eyebrow badge ─────────────────────────── */
.slide-time-est {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 40, 104, .45);
  letter-spacing: .02em;
  background: rgba(0, 40, 104, .06);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── Scenario Decision Slide ─────────────────────────────── */
.scenario-setup {
  background: #f0f4ff;
  border: 1.5px solid #c7d2fe;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 20px;
}
.scenario-setup p {
  font-size: 15px;
  color: #1e3a5f;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}
.scenario-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 580px) {
  .scenario-choices { grid-template-columns: 1fr; }
}
.sc-choice {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-family: "Manrope", sans-serif;
  transition: border-color .2s, background .2s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-choice:hover:not(:disabled) {
  border-color: #002868;
  background: #f8faff;
  transform: translateY(-2px);
}
.sc-choice:disabled { cursor: default; opacity: .75; transform: none; }
.sc-choice.chosen-a,
.sc-choice.chosen-b { border-color: #002868; background: #eff3ff; }
.sc-label {
  font-size: 10px;
  font-weight: 800;
  color: #002868;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sc-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
  font-weight: 500;
}
.sc-consequence {
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 4px;
  display: none;
  animation: fadeUp .35s ease;
}
.sc-consequence.outcome-a {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
}
.sc-consequence.outcome-b {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}
.sc-result-header {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sc-consequence.outcome-a .sc-result-header { color: #92400e; }
.sc-consequence.outcome-b .sc-result-header { color: #166534; }
.sc-con-text {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.sc-consequence.outcome-a .sc-con-text { color: #78350f; }
.sc-consequence.outcome-b .sc-con-text { color: #15803d; }
.sc-continue-nudge {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 14px;
  display: none;
  font-style: italic;
}

/* ── Knowledge Check Slide ───────────────────────────────── */
.kc-block {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.kc-question {
  font-size: 15px;
  font-weight: 700;
  color: #002868;
  line-height: 1.5;
  margin-bottom: 14px;
}
.kc-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kc-opt {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 11px 16px;
  text-align: left;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  line-height: 1.5;
}
.kc-opt:hover:not(:disabled) {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}
.kc-opt:disabled { cursor: default; }
.kc-opt.kc-correct {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
  font-weight: 700;
}
.kc-opt.kc-correct::before { content: "✓  "; }
.kc-opt.kc-wrong {
  background: #fff7ed;
  border-color: #f97316;
  color: #92400e;
}
.kc-opt.kc-wrong::before { content: "✗  "; }
.kc-opt.kc-dim {
  opacity: .45;
  background: #f1f5f9;
}
.kc-explanation {
  margin-top: 12px;
  background: #eff6ff;
  border-left: 4px solid #002868;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #1e3a5f;
  line-height: 1.65;
  display: none;
  animation: fadeUp .3s ease;
}
.kc-explanation.show { display: block; }
.kc-explanation strong { color: #002868; }

/* ── Progress bar on course index ───────────────────────── */
.bwhq-course-progress {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.bwhq-progress-label {
  font-size: 14px;
  font-weight: 700;
  color: #002868;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bwhq-progress-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal, #0e7490);
}
.bwhq-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.bwhq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #002868, #0e7490);
  border-radius: 99px;
  transition: width .6s ease;
  width: 0%;
}

/* module-card check badge */
.mod-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border-radius: 20px;
  padding: 2px 10px;
}
.module-card.is-complete {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .12);
}

/* ── Completion Certificate Modal ────────────────────────── */
.cert-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .3s ease;
}
.cert-modal {
  background: white;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  padding: 48px 44px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}
.cert-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.cert-seal { font-size: 64px; margin-bottom: 16px; display: block; }
.cert-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal, #0e7490);
  margin-bottom: 12px;
}
.cert-modal h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #002868;
  margin: 0 0 8px;
  line-height: 1.2;
}
.cert-name {
  font-size: 22px;
  font-weight: 800;
  color: #002868;
  border-bottom: 2px solid #002868;
  display: inline-block;
  padding: 4px 24px 8px;
  margin: 16px 0;
  min-width: 240px;
}
.cert-body {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 28px;
}
.cert-date {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 28px;
}
.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-btn-print {
  background: #002868;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 12px 28px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
}
.cert-btn-print:hover { background: #1a3d82; }
.cert-btn-close {
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 9px;
  padding: 12px 28px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Print styles (certificate) ─────────────────────────── */
@media print {
  body * { visibility: hidden; }
  .cert-overlay, .cert-overlay * { visibility: visible; }
  .cert-overlay { position: absolute; top: 0; left: 0; background: white; }
  .cert-close, .cert-actions { display: none !important; }
  .cert-modal { box-shadow: none; }
}
