/* =====================================================
   ESTILOS ESPECÍFICOS: TELA DE LOTERIAS
===================================================== */

/* Ocultar o article page-card padrão para esta página */
.page-container {
  max-width: 1200px;
  width: 100%;
}

.loterias-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  color: #ffb8d2;
  margin-bottom: 40px;
  text-shadow: 0 0 20px rgba(255, 184, 210, 0.4);
  letter-spacing: 1px;
}

.loterias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .loterias-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ESTRUTURA DO CARD
===================================================== */
.loteria-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.loteria-card-header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.loteria-card-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.loteria-card-body {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

/* Dupla Sena Sorteios Title */
.sorteio-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* DEZENAS */
.dezenas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.dezena {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  background: transparent;
  border: 2px solid;
}

/* TEXTO INFORMATIVO */
.info-text {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 16px;
}

.info-text strong {
  font-weight: 700;
}

/* DETALHES BOX */
.detalhes-box {
  border: 1px solid;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.detalhes-box:hover {
  background: rgba(0,0,0,0.02);
}

/* BOTÃO VER GANHADORES */
.btn-ganhadores {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  margin-bottom: 16px;
}

.btn-ganhadores:hover {
  opacity: 0.8;
}

.btn-ganhadores svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn-ganhadores.open svg {
  transform: rotate(180deg);
}

/* ÁREA EXPANSÍVEL (GANHADORES) */
.ganhadores-area {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

.ganhadores-area.show {
  display: flex;
}

.ganhadores-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
}

.ganhadores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.ganhador-box {
  border: 1px solid;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  min-width: 120px;
  flex: 1;
}

.ganhador-acertos {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ganhador-dados {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
}

.ganhador-dados strong {
  display: block;
  color: #1f2937;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   CORES ESPECÍFICAS POR LOTERIA
===================================================== */

/* MEGA-SENA */
.theme-mega { border-top: 6px solid #209869; }
.theme-mega .loteria-card-header h2 { color: #209869; }
.theme-mega .dezena { border-color: #209869; color: #209869; }
.theme-mega .info-text strong { color: #209869; }
.theme-mega .detalhes-box { border-color: rgba(32, 152, 105, 0.3); color: #4b5563; }
.theme-mega .detalhes-box span { color: #209869; font-weight: 800; }
.theme-mega .btn-ganhadores { background: #d2ece1; color: #209869; }
.theme-mega .btn-ganhadores svg { fill: #209869; }
.theme-mega .ganhador-box { border-color: rgba(32, 152, 105, 0.4); }
.theme-mega .ganhador-acertos { color: #209869; }

/* QUINA */
.theme-quina { border-top: 6px solid #260085; }
.theme-quina .loteria-card-header h2 { color: #260085; }
.theme-quina .dezena { border-color: #260085; color: #260085; }
.theme-quina .info-text strong { color: #260085; }
.theme-quina .detalhes-box { border-color: rgba(38, 0, 133, 0.3); color: #4b5563; }
.theme-quina .detalhes-box span { color: #260085; font-weight: 800; }
.theme-quina .btn-ganhadores { background: #d7d1f5; color: #260085; }
.theme-quina .btn-ganhadores svg { fill: #260085; }
.theme-quina .ganhador-box { border-color: rgba(38, 0, 133, 0.4); }
.theme-quina .ganhador-acertos { color: #260085; }

/* DUPLA SENA */
.theme-dupla { border-top: 6px solid #a61324; }
.theme-dupla .loteria-card-header h2 { color: #a61324; }
.theme-dupla .dezena { border-color: #a61324; color: #a61324; }
.theme-dupla .sorteio-badge { background: #ff5e70; }
.theme-dupla .info-text strong { color: #a61324; }
.theme-dupla .detalhes-box { border-color: rgba(166, 19, 36, 0.3); color: #4b5563; }
.theme-dupla .detalhes-box span { color: #a61324; font-weight: 800; }
.theme-dupla .btn-ganhadores { background: #fad2d6; color: #a61324; }
.theme-dupla .btn-ganhadores svg { fill: #a61324; }
.theme-dupla .ganhador-box { border-color: rgba(166, 19, 36, 0.4); }
.theme-dupla .ganhador-acertos { color: #a61324; }

/* LOTOFÁCIL */
.theme-lotofacil { border-top: 6px solid #930089; }
.theme-lotofacil .loteria-card-header h2 { color: #930089; }
.theme-lotofacil .dezena { border-color: #930089; color: #930089; }
.theme-lotofacil .info-text strong { color: #930089; }
.theme-lotofacil .detalhes-box { border-color: rgba(147, 0, 137, 0.3); color: #4b5563; }
.theme-lotofacil .detalhes-box span { color: #930089; font-weight: 800; }
.theme-lotofacil .btn-ganhadores { background: #f5d1f1; color: #930089; }
.theme-lotofacil .btn-ganhadores svg { fill: #930089; }
.theme-lotofacil .ganhador-box { border-color: rgba(147, 0, 137, 0.4); }
.theme-lotofacil .ganhador-acertos { color: #930089; }

/* ESTADO DE CARREGAMENTO */
.loading-box {
  color: #1f2937;
  padding: 40px;
  font-weight: 600;
}
