/* ─── Quiz Layout & Components ────────────────────────────────────────────── */

.quizContainer {
  max-width: var(--noon-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: var(--noon-font);
  color: var(--noon-text);
  background: var(--noon-bg);
  border-radius: var(--noon-radius);
  border: 1px solid var(--noon-border);
  box-shadow: var(--noon-shadow);
}

/* ── Landing Hook ─────────────────────────────────────────────────────────── */

.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.landingIcon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

:global(.noon-audit-wrapper) .landingTitle {
  font-size: 2.5rem !important; /* Force override theme h1 styles (Astra uses 3.375rem) */
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem;
  color: var(--noon-text) !important;
}

.landingHook {
  font-size: 1.05rem;
  color: var(--noon-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.startButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--noon-accent), var(--noon-accent-hover));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--noon-transition);
  box-shadow: 0 4px 20px rgba(var(--noon-accent-rgb), 0.35);
}

.startButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--noon-accent-rgb), 0.5);
}

.startButton:active {
  transform: translateY(0);
}

.timerBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--noon-text-muted);
  background: var(--noon-bg-card);
  border-radius: 50px;
  border: 1px solid var(--noon-border);
}

/* ── Progress Bar ─────────────────────────────────────────────────────────── */

.progressWrapper {
  margin-bottom: 2rem;
}

.progressHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.progressLabel {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--noon-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progressCount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--noon-accent);
}

.progressTrack {
  width: 100%;
  height: 6px;
  background: var(--noon-bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, var(--noon-accent), var(--noon-accent-hover));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Question Card ────────────────────────────────────────────────────────── */

.questionCard {
  animation: slideIn 0.35s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.questionCategory {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--noon-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--noon-accent-light);
  border-radius: 50px;
}

.questionText {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 20px 0;
  color: var(--noon-text);
}

/* ── Answer Options ───────────────────────────────────────────────────────── */

.answersGrid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.answerOption {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--noon-bg-card);
  border: 1.5px solid var(--noon-border);
  border-radius: var(--noon-radius-sm);
  cursor: pointer;
  transition: all var(--noon-transition);
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--noon-text);
  line-height: 1.5;
}

.answerOption:hover {
  border-color: var(--noon-accent);
  background: var(--noon-bg-card-hover);
  transform: translateX(4px);
}

.answerOption.selected {
  border-color: var(--noon-accent);
  background: var(--noon-accent-light);
}

.answerLetter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--noon-text-muted);
  background: var(--noon-bg-elevated);
  border-radius: 8px;
  transition: all var(--noon-transition);
  flex-shrink: 0;
  margin-top: 1px;
}

.answerOption:hover .answerLetter,
.answerOption.selected .answerLetter {
  color: white;
  background: var(--noon-accent);
}

.answerText {
  flex: 1;
}

/* ── Back Button ──────────────────────────────────────────────────────────── */

.backButton {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--noon-text-muted);
  background: none;
  border: 1px solid var(--noon-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--noon-transition);
  font-family: inherit;
}

.backButton:hover {
  color: var(--noon-text);
  border-color: var(--noon-text-muted);
}

/* ── Watermark ────────────────────────────────────────────────────────────── */

.watermark {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--noon-border);
}

.watermark a {
  font-size: 0.7rem;
  color: var(--noon-text-muted);
  text-decoration: none;
  transition: color var(--noon-transition);
}

.watermark a:hover {
  color: var(--noon-accent);
}
