/* ============================================================
   ENEM — Simulado de Linguagens e Códigos
   Página independente: CSS próprio, não depende de
   global-assuntos.css. Reaproveita só as classes base do
   dashboard.css (sidebar, header, fade-in, spinner, badges).
============================================================ */

.assunto-breadcrumb {
  font-size: 0.8rem;
  color: #71717a;
}
.assunto-breadcrumb a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.assunto-breadcrumb a:hover {
  color: #f59e0b;
}

/* ---------- Botões reutilizados nas 3 telas ---------- */
.btn-primario {
  display: inline-block;
  text-align: center;
  padding: 0.85rem 1.75rem;
  background: #f59e0b;
  color: #09090b;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primario:hover {
  background: #fbbf24;
  transform: scale(1.02);
}
.btn-primario:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secundario {
  display: inline-block;
  text-align: center;
  padding: 0.85rem 1.75rem;
  background: #18181b;
  color: #d4d4d8;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secundario:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.btn-secundario:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   TELA 1 — INTRODUÇÃO
============================================================ */
.intro-stat-card {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.1rem;
  text-align: center;
}
.intro-stat-numero {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.intro-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a1a1aa;
  margin-top: 0.35rem;
}

.regras-card {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}
.lista-regras {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lista-regras li {
  font-size: 0.85rem;
  color: #a1a1aa;
  line-height: 1.55;
  padding-left: 1.3rem;
  position: relative;
}
.lista-regras li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 900;
}

.aviso-continuar {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
}

.link-reiniciar {
  background: none;
  border: none;
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.link-reiniciar:hover {
  color: #f87171;
}

/* ============================================================
   TELA 2 — QUIZ
============================================================ */
.progresso-wrap {
  height: 8px;
  background: #18181b;
  border-radius: 9999px;
  overflow: hidden;
}
.progresso-barra {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.3s ease;
}

.questao-card {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem;
  padding: 1.5rem;
}

.badge-dificuldade {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}
.dificuldade-facil {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.dificuldade-media {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.dificuldade-dificil {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.questao-imagem {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #0c0c0e;
}

.questao-texto-apoio {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.7;
  background: #0c0c0e;
  border-left: 3px solid rgba(245, 158, 11, 0.4);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
}

.questao-enunciado {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.questao-alternativas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.alternativa-opcao {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.alternativa-opcao:hover {
  border-color: rgba(245, 158, 11, 0.35);
}
.alternativa-opcao.selecionada {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.alternativa-letra {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alternativa-opcao.selecionada .alternativa-letra {
  background: #f59e0b;
  color: #09090b;
}

.alternativa-texto {
  font-size: 0.85rem;
  color: #d4d4d8;
  line-height: 1.5;
  padding-top: 0.15rem;
}

/* Grade de questões (bolinhas numeradas pra navegar) */
.grade-questoes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .grade-questoes { grid-template-columns: repeat(10, 1fr); }
}

.grade-item {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.grade-item.respondida {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.grade-item.atual {
  border-color: #f59e0b;
  border-width: 2px;
  color: #ffffff;
}

/* ============================================================
   TELA 3 — RESULTADO
============================================================ */
.resultado-banner {
  text-align: center;
  border-radius: 1.25rem;
  padding: 2.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.resultado-banner.aprovado {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.02));
  border-color: rgba(16, 185, 129, 0.3);
}
.resultado-banner.reprovado {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(239, 68, 68, 0.02));
  border-color: rgba(239, 68, 68, 0.3);
}

.resultado-numeros {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.resultado-numero {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
}
.resultado-numero-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #71717a;
  margin-top: 0.2rem;
}

.recomendacao-card {
  background: #18181b;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
}
.recomendacao-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.recomendacao-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.recomendacao-item:hover {
  background: rgba(245, 158, 11, 0.18);
}

/* Revisão completa (lista pós-resultado) */
.revisao-item {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
}
.revisao-item.acertou {
  border-left: 3px solid #10b981;
}
.revisao-item.errou {
  border-left: 3px solid #ef4444;
}
.revisao-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.revisao-status {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.revisao-status.acertou {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.revisao-status.errou {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.revisao-enunciado {
  font-size: 0.85rem;
  color: #e4e4e7;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.revisao-resposta-linha {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-bottom: 0.25rem;
}
.revisao-explicacao {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #d4d4d8;
  line-height: 1.6;
}

/* ============================================================
   BLOQUEIO — mesmo padrão visual usado nas páginas de assunto
============================================================ */
#lock-simulado {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
}
#lock-simulado .lock-icone {
  font-size: 2.75rem;
}
#lock-simulado .lock-titulo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  max-width: 26rem;
}
#lock-simulado .lock-texto {
  font-size: 0.875rem;
  color: #a1a1aa;
  max-width: 26rem;
  line-height: 1.55;
}