/* ============================================================
   TEMA LOTÉRICA ALFA — override seguro (carregado após premium.css)
   ============================================================ */

/* ---------- FUNDO CINZA CLARO ---------- */
body,
.main,
.site-main,
.alfa-secao,
.section:nth-child(even) {
    background: #eef1f5 !important;
}

/* Título da seção em azul-marinho (contraste sobre fundo claro) */
.alfa-titulo,
.alfa-titulo h2,
.alfa-titulo p,
.alfa-titulo span {
    color: #003a6e !important;
}

/* ---------- CARDS DA HOME ---------- */
.alfa-card {
    background: #ffffff !important;
    border: 1px solid #e6e9ee !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(16, 42, 67, 0.10) !important;
}

/* ---------- BOTÃO PARTICIOPE DO BOLÃO (laranja, texto preto, 2 linhas centralizadas) ---------- */
.alfa-btn-bolao {
    background: #f47920 !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 700 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

/* ---------- BOTÃO JOGUE COM IA (roxo tech, "IA" centralizada embaixo) ---------- */
.alfa-btn-ia {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

/* ---------- BOTÃO RESULTADO (COR DA LOTERIA via $cor inline) ---------- */
/* NENHUM override de background aqui — o style="background:$cor" do HTML prevalece */
.alfa-btn-resultado {
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   CARROSSEL DE LOTERIAS
   ============================================================ */
.loteria-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.loteria-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 6px 4px;
}
.loteria-card {
    display: flex;
    flex-direction: column;      /* ÍCONE EM CIMA, NOME EMBAIXO */
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px 12px;
    min-width: 88px;
    border-radius: 12px;
    color: #ffffff;
    border: 2px solid transparent;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color .2s, transform .2s, box-shadow .2s, filter .2s;
}
.loteria-card:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.loteria-card.active {
    border-color: #f47920;
    box-shadow: 0 0 0 2px #f47920;
    filter: brightness(1.02);
}
.loteria-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}
.loteria-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
}
.carousel-arrow {
    background: #003a6e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.carousel-arrow:hover { background: #f47920; }
@media (max-width: 640px) {
    .loteria-icon { width: 44px; height: 44px; }
    .carousel-arrow { width: 34px; height: 34px; }
}
/* ===== FIX MOBILE DEFINITIVO (carrega por último = vence) ===== */
@media (max-width: 700px) {
    html, body { overflow-x: hidden; }
    .topbar-inner { padding: 6px 12px !important; }
    .topbar-contato { gap: 10px !important; flex-wrap: wrap !important; }
    .topbar-item { font-size: 0.72rem !important; white-space: normal !important; }
    .navbar { padding: 10px 12px !important; gap: 10px !important; }
    .logo-grande { height: 38px !important; }
    .navbar-menu { gap: 20px !important; }
    .section { padding: 20px 0 !important; }
    .section-title { margin-bottom: 16px !important; }
    .section-title h2 { font-size: 1.3rem !important; }
    .proximo-row { padding: 14px !important; gap: 10px !important; }
    .loteria-badge { width: 60px !important; max-width: 60px !important; }
    .proximo-dado strong { font-size: 1rem !important; }
    .btn-ver-boloes, .btn-resultado { width: 100% !important; padding: 11px 8px !important; }
    .bola { width: 26px !important; height: 26px !important; font-size: 0.68rem !important; }
    .premium-cabecalho { gap: 10px !important; padding: 12px !important; }
    .premium-logo { width: 64px !important; }
    .premium-lista { padding: 6px 12px 12px !important; }
    .premium-item { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
    .premium-concurso, .premium-data { min-width: 0 !important; width: 100% !important; }
    .premium-dezenas { justify-content: flex-start !important; width: 100% !important; }
    .premium-bola { width: 28px !important; height: 28px !important; font-size: 0.7rem !important; }
    .rateios thead { display: none !important; }
    .rateios, .rateios tbody, .rateios tr, .rateios td { display: block !important; width: 100% !important; }
    .rateios tr { border: 1px solid #e5e5e5 !important; border-radius: 10px !important; padding: 8px 12px !important; margin-bottom: 8px !important; background: #fafafa !important; }
    .rateios td { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 4px 0 !important; border: none !important; text-align: right !important; }
    .rateios td::before { font-weight: 700 !important; color: #003a6e !important; font-size: 0.7rem !important; text-transform: uppercase !important; }
    .rateios td:nth-child(1)::before { content: "Faixa"; }
    .rateios td:nth-child(2)::before { content: "Ganhadores"; }
    .rateios td:nth-child(3)::before { content: "Prêmio (R$)"; }
    .loterias-menu { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .loteria-opcao { padding: 8px 4px !important; gap: 4px !important; font-size: 0.75rem !important; }
    .loteria-logo { width: 52px !important; max-width: 52px !important; max-height: 40px !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .site-footer { padding: 26px 0 14px !important; }
    .prompts-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 380px) {
    .loterias-menu { grid-template-columns: repeat(2, 1fr) !important; }
    .bola { width: 24px !important; height: 24px !important; font-size: 0.62rem !important; }
    .premium-bola { width: 26px !important; height: 26px !important; font-size: 0.65rem !important; }
}
