/* UI WOW – lightweight polish on top of Bootstrap (no JS deps) */

/* Background */
body {
  background: radial-gradient(1200px 600px at 10% 0%, rgba(13,110,253,.08), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(32,201,151,.08), transparent 50%),
              #f8f9fa;
}

/* Cards */
.wow-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.6rem rgba(0,0,0,.08);
}
.wow-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Soft “glass” header band */
.wow-hero {
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(13,110,253,.10), rgba(32,201,151,.10));
  border: 1px solid rgba(0,0,0,.06);
}

/* Quiz: keep header/progress visible while scrolling */
.quiz-topbar {
  /* Non-sticky: avoids "floating" header while scrolling through questions */
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden; /* keep inner content inside rounded corners */
  isolation: isolate;
  padding: 14px 18px;
  box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.08);
}

/* Quiz page: bring header slightly closer to the main navbar */
.quiz-page{margin-top:-12px;}

.quiz-topbar hr {
  margin: .75rem 0;
}

.quiz-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.98);
  pointer-events: none;
}

/* ensure primary buttons remain readable even with custom styles */
.btn-primary { color: #fff !important; }

.quiz-topbar > * {
  position: relative;
  z-index: 1;
}

/* Option cards for quiz */
.option-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .95rem 1rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  cursor: pointer;
}

/* One-question-at-a-time wizard */
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.option-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.6rem 1.3rem rgba(0,0,0,.10);
  border-color: rgba(13,110,253,.35);
}
.option-card input[type="radio"] {
  transform: scale(1.05);
  margin-top: .25rem;
}

.option-card > div {
  min-width: 0; /* allow wrapping inside flex */
}

.option-card h5,
.option-card .fw-semibold {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quiz-qtext {
  min-width: 0;
  overflow-wrap: anywhere;
}

.btn-wow {
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-wow:hover {
  background: rgba(255,255,255,.85);
}

/* Keep "primary" buttons readable even with the translucent wow style. */
.btn-wow.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}
.btn-wow.btn-primary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  filter: brightness(0.95);
}

.option-card.is-selected {
  border-color: rgba(13,110,253,.65);
  box-shadow: 0 0.65rem 1.5rem rgba(13,110,253,.12);
}

/* Sticky footer action bar (mobile friendly) */
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: rgba(248,249,250,.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,.06);
}

/* Small badge with subtle border */
.badge-soft {
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  border: 1px solid rgba(13,110,253,.18);
}

/* Text wrapping helpers */
.wow-q-title{overflow-wrap:anywhere;}
.option-card .fw-semibold{overflow-wrap:anywhere;}


/* Quiz page spacing */
.quiz-page .wow-card{padding:1.25rem;}
.quiz-page .option-card{padding:.9rem;}
@media (min-width: 992px){
  .quiz-page{max-width: 980px;}
}


/* Quiz layout tweaks */
/* Quiz topbar should NOT be sticky (keeps layout stable while answering). */
.quiz-topbar-fixed{position:static;top:auto;z-index:auto;margin-top:0;}
.quiz-topbar-fixed .progress{height:10px;}
.quiz-page{padding-top:0.25rem;}
