/* ============================================================
   QUIZ.CSS — AstroEdu Brasil
   Gerado por tools/split-css.js
   Não editar manualmente — edite a fonte ou reorganize os slots.
   ============================================================ */
/* ===== QUIZ ===== */
.quiz-container {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.quiz-progress-bar {
  background: rgba(255,255,255,0.1);
  height: 8px;
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul-brilhante), var(--roxo-brilhante));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.question-number {
  font-size: 0.85rem;
  color: var(--azul-brilhante);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-display {
  font-size: 0.9rem;
  color: var(--amarelo-estrela);
  font-weight: 700;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: var(--branco);
}

.question-emoji {
  display: block;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.option-btn {
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  color: var(--branco);
  font-size: 1rem;
  font-family: var(--fonte-corpo);
  transition: all 0.3s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-btn:hover:not(:disabled) {
  background: rgba(0,212,255,0.1);
  border-color: var(--azul-brilhante);
  transform: translateY(-2px);
}

.option-btn.correct {
  background: rgba(46,204,113,0.2);
  border-color: var(--verde-neon);
  color: var(--verde-neon);
}

.option-btn.wrong {
  background: rgba(231,76,60,0.2);
  border-color: var(--vermelho-marte);
  color: var(--vermelho-marte);
}

.option-btn:disabled { cursor: not-allowed; }

.option-letter {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.feedback-box {
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
  align-items: flex-start;
  gap: 12px;
}

.feedback-box.show { display: flex; }

.feedback-box.correct-feedback {
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.3);
}

.feedback-box.wrong-feedback {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
}

.feedback-icon { font-size: 1.5rem; flex-shrink: 0; }

.feedback-text strong { display: block; margin-bottom: 0.25rem; }
.feedback-text p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ===== RESULTADO FINAL ===== */
.result-screen {
  text-align: center;
  padding: 2rem;
  display: none;
}

.result-screen.show { display: block; }

.result-emoji { font-size: 5rem; display: block; margin-bottom: 1rem; }

.result-score {
  font-family: var(--fonte-titulo);
  font-size: 3rem;
  color: var(--amarelo-estrela);
  margin-bottom: 0.5rem;
}

.result-message {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.result-stars {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 5px;
}

.medals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.medal-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1rem 0.5rem;
}

.medal-icon { font-size: 2rem; display: block; margin-bottom: 0.25rem; }
.medal-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.medal-value { font-size: 1rem; font-weight: 700; color: var(--azul-brilhante); }

/* ===== QUIZ CATEGORY SELECTOR ===== */
.quiz-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-cat-btn {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  color: var(--branco);
  font-family: var(--fonte-corpo);
  transition: all 0.3s;
  text-align: center;
}

.quiz-cat-btn:hover, .quiz-cat-btn.selected {
  border-color: var(--azul-brilhante);
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

.quiz-cat-btn .cat-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.quiz-cat-btn .cat-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.quiz-cat-btn .cat-count { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ===== NIVEL DIFFICULTY ===== */
.difficulty-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.diff-easy { background: rgba(46,204,113,0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.diff-medium { background: rgba(241,196,15,0.2); color: #f1c40f; border: 1px solid #f1c40f; }
.diff-hard { background: rgba(231,76,60,0.2); color: #e74c3c; border: 1px solid #e74c3c; }

/* ===== MINIPROVA OVERLAY ===== */
.miniprova-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(5,5,16,0.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; overflow-y: auto;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.miniprova-modal {
  background: #0a0a20; border: 1px solid var(--border-h);
  border-radius: var(--radius-lg); padding: 1.5rem;
  max-width: 800px; width: 100%; max-height: 92vh; overflow-y: auto;
  position: relative;
}
.miniprova-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-family: var(--font-h); font-weight: 700; color: var(--text); }
.miniprova-close {
  background: transparent; border: none; color: var(--text-2);
  font-size: 1.8rem; cursor: pointer; padding: 0 0.5rem; line-height: 1;
}
.miniprova-close:hover { color: var(--red); }
.miniprova-progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-bottom: 1rem; }
.miniprova-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s var(--ease); }
.miniprova-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.miniprova-body-stack { grid-template-columns: 1fr; }
@media (max-width: 700px) { .miniprova-body { grid-template-columns: 1fr; } }
.miniprova-result { text-align: center; padding: 2rem 1rem; }
.miniprova-result h2 { font-family: var(--font-h); margin-bottom: 1rem; }
.miniprova-score { font-family: var(--font-h); font-size: 4rem; font-weight: 900; color: var(--accent); }
.miniprova-score span { font-size: 2rem; color: var(--text-3); }
.miniprova-pct { font-size: 1.5rem; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.miniprova-stats { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mp-stat { font-size: 0.9rem; font-weight: 700; padding: 0.4rem 0.85rem; border-radius: var(--radius-sm); }
.mp-stat-correct { background: rgba(16,185,129,0.15); color: var(--green); }
.mp-stat-wrong { background: rgba(239,68,68,0.15); color: var(--red); }
.mp-stat-skip { background: rgba(243,156,18,0.15); color: #f39c12; }

/* ===== MINIPROVA OVERLAY — FULLSCREEN + LIGHT THEME =====
   Aplicado quando o overlay tem .miniprova-fullscreen / .prova-light-theme.
   Deixa a leitura mais confortável: fundo claro, tipografia maior, contraste alto. */
.miniprova-fullscreen {
  background: linear-gradient(180deg, #eef3fb 0%, #dde6f3 100%);
  backdrop-filter: none;
  padding: 0;
  align-items: stretch;
  justify-content: center;
}
.miniprova-fullscreen .miniprova-modal {
  background: #ffffff;
  color: #1a1a2e;
  border: none;
  border-radius: 0;
  padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1rem, 6vw, 3.5rem);
  max-width: 980px;
  max-height: none;
  min-height: 100vh;
  width: 100%;
  box-shadow: 0 0 60px rgba(10,25,60,0.08);
  margin: 0 auto;
}
.prova-light-theme .miniprova-header {
  color: #1a1a2e;
  font-size: 1rem;
}
.prova-light-theme .miniprova-close {
  color: #4a5568;
  font-size: 2.1rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.prova-light-theme .miniprova-close:hover {
  color: #c0392b;
  background: rgba(192,57,43,0.08);
}
.prova-light-theme .miniprova-progress {
  background: #e3e9f2;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.prova-light-theme .miniprova-progress-fill {
  background: linear-gradient(90deg, #0074d9, #7f4bd8);
}
.prova-light-theme .home-card-title,
.prova-light-theme .quick-q-text,
.prova-light-theme .quick-q-vf-text,
.prova-light-theme .ligue-left,
.prova-light-theme .miniprova-result h2,
.prova-light-theme .quick-q-opt-text {
  color: #1a1a2e;
}
.prova-light-theme .quick-q-text {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  color: #1a1a2e;
  font-weight: 500;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}
.prova-light-theme .quick-q-meta { margin-bottom: 1rem; }
.prova-light-theme .quick-q-topic { background: rgba(127, 75, 216, 0.1); color: #5a3acc; }
.prova-light-theme .quick-q-type  { background: rgba(0,116,217,0.1);   color: #0261b8; }
.prova-light-theme .quick-q-code  { background: #eef2f8; color: #667084; }
.prova-light-theme .quick-q-topic-icon {
  background: rgba(0,116,217,0.08);
  border-color: rgba(0,116,217,0.25);
}

/* Opções ABCD mais arejadas e legíveis no tema claro */
.prova-light-theme .quick-q-options { gap: 0.75rem; }
.prova-light-theme .quick-q-opt {
  background: #f6f8fc;
  border: 1.5px solid #d4dae4;
  color: #1a1a2e;
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  line-height: 1.5;
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.prova-light-theme .quick-q-opt:hover:not(:disabled) {
  background: #e8efff;
  border-color: #0074d9;
  transform: translateY(-1px);
}
.prova-light-theme .quick-q-letter {
  background: #0074d9;
  color: #fff;
  width: 34px; height: 34px;
  font-size: 0.95rem;
}
.prova-light-theme .quick-q-opt-correct {
  background: #e3f7ec !important;
  border-color: #2ecc71 !important;
  color: #14532d;
}
.prova-light-theme .quick-q-opt-correct .quick-q-letter { background: #2ecc71; }
.prova-light-theme .quick-q-opt-wrong {
  background: #fdecea !important;
  border-color: #e74c3c !important;
  color: #7a1a14;
}
.prova-light-theme .quick-q-opt-wrong .quick-q-letter { background: #e74c3c; }

/* VF e LIGUE no tema claro */
.prova-light-theme .quick-q-vf-row {
  background: #f6f8fc;
  border-color: #d4dae4;
  padding: 0.8rem 1rem;
}
.prova-light-theme .quick-q-vf-text { color: #1a1a2e; font-size: 1rem; }
.prova-light-theme .quick-q-vf-btn {
  background: #fff;
  border-color: #d4dae4;
  color: #1a1a2e;
}
.prova-light-theme .quick-q-vf-btn.active {
  background: #0074d9; color: #fff; border-color: #0074d9;
}
.prova-light-theme .vf-row-correct { border-color: #2ecc71; background: #e8f9ef; }
.prova-light-theme .vf-row-wrong   { border-color: #e74c3c; background: #fdecea; }
.prova-light-theme .vf-row-hint {
  color: #374151;
  border-top-color: rgba(0,0,0,0.08);
}
.prova-light-theme .vf-row-hint strong { color: #0f172a; }
.prova-light-theme .ligue-select {
  background: #fff; border-color: #d4dae4; color: #1a1a2e;
}
.prova-light-theme .ligue-select.ligue-correct { background: #e8f9ef; border-color: #2ecc71; }
.prova-light-theme .ligue-select.ligue-wrong   { background: #fdecea; border-color: #e74c3c; }
.prova-light-theme .ligue-arrow { color: #94a3b8; }
.prova-light-theme .ligue-left  { color: #1a1a2e; font-size: 1rem; }
.prova-light-theme .ligue-hint  { color: #c0392b; }
.prova-light-theme .ligue-instructions { color: #4a5568; font-size: 0.95rem; }

/* Feedback boxes em tema claro */
.prova-light-theme .qfb-correct {
  background: #e6f9ee; color: #14532d; border-color: #2ecc71;
}
.prova-light-theme .qfb-wrong {
  background: #fdecea; color: #7a1a14; border-color: #e74c3c;
}
.prova-light-theme .qfb-explain {
  background: #f0f6ff;
  color: #1a1a2e;
  border-left-color: #0074d9;
  font-size: 0.98rem;
  line-height: 1.6;
}
.prova-light-theme .qfb-wrong-why {
  background: #fff1ee;
  color: #5a1a10;
  border-left-color: #e74c3c;
  font-size: 0.95rem;
}
.prova-light-theme .qfb-add { border-left-color: #d97706; background: #fffaf0; }
.prova-light-theme .home-next-btn,
.prova-light-theme .quick-q-submit-vf {
  background: linear-gradient(135deg, #0074d9, #7f4bd8);
  color: #fff !important;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,116,217,0.3);
}
.prova-light-theme .quick-q-submit-next {
  background: linear-gradient(135deg, #10b981, #0074d9) !important;
  color: #fff !important;
}

/* Tela de resultado em tema claro */
.prova-light-theme .miniprova-result h2 { color: #1a1a2e; }
.prova-light-theme .miniprova-score { color: #0074d9; }
.prova-light-theme .miniprova-score span { color: #94a3b8; }
.prova-light-theme .miniprova-pct { color: #d97706; }
.prova-light-theme .mp-stat-correct { background: #e6f9ee; color: #14532d; }
.prova-light-theme .mp-stat-wrong   { background: #fdecea; color: #7a1a14; }
.prova-light-theme .mp-stat-skip    { background: #fff7e0; color: #92400e; }

@media (max-width: 700px) {
  .miniprova-fullscreen .miniprova-modal {
    padding: 1rem 1rem 2rem;
  }
  .prova-light-theme .quick-q-opt { padding: 0.85rem 1rem; font-size: 1rem; }
}

