/* ===== Reset básico ===== */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; margin: 0; padding: 0; max-width: 100%; }

/* ===== Container centralizado ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ===== Barra superior — LARANJA CAIXA ===== */
.topbar-caixa { background: #f47920; color: #003a6e; font-size: 0.85rem; }
.topbar-inner { display: flex; align-items: center; padding: 8px 20px; }
.topbar-contato { display: flex; align-items: center; gap: 24px; }
.topbar-item { color: #003a6e; text-decoration: none; white-space: nowrap; font-weight: 600; }
.topbar-wa:hover { text-decoration: underline; }

/* ===== Faixa fina dourada ===== */
.faixa-laranja { height: 3px; background: #f5b301; }

/* ===== Cabeçalho — AZUL CAIXA ===== */
.site-header { background: #003a6e; box-shadow: 0 2px 8px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 100; width: 100%; }

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 12px 20px; width: 100%; }
.navbar-brand { flex-shrink: 0; display: flex; align-items: center; }
.logo-grande { height: 48px; width: auto; display: block; }

/* Menu — links brancos sobre azul */
.navbar-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0 auto; padding: 0; }
.navbar-menu a { font-weight: 600; letter-spacing: 0.3px; color: #fff; text-decoration: none; padding: 0; line-height: 1; font-size: 0.95rem; white-space: nowrap; position: relative; transition: color 0.2s; }
.navbar-menu a:hover { color: #f5b301; }
.navbar-menu a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: #f5b301; transition: width 0.2s; }
.navbar-menu a:hover::after { width: 100%; }

/* Botões à direita */
.navbar-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; cursor: pointer; border: none; }
.btn-outline { background: transparent; border: 1px solid #f5b301; color: #f5b301; }
.btn-outline:hover { background: #f5b301; color: #003a6e; }
.btn-primary { background: #f47920; color: #fff; }
.btn-primary:hover { background: #d96a12; }
.btn-link { background: transparent; color: #f5b301; border: none; padding: 8px 0; }

/* ===== Botão hambúrguer (mobile) ===== */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 200; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 3px; transition: transform 0.3s, opacity 0.3s; }

/* ===== Seção Próximos Concursos ===== */
.section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 1.8rem; color: #003a6e; margin-bottom: 8px; }
.section-title p { color: #666; max-width: 600px; margin: 0 auto; }

/* ===== Cards — fundo CINZA ===== */
.proximos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; width: 100%; max-width: 100%; }
.proximo-row { background: #e0e0e0; border: 1px solid #c8c8c8; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 100%; min-width: 0; overflow-wrap: break-word; box-shadow: 0 8px 20px rgba(0,0,0,0.12); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.proximo-row:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); border-color: #f47920; }

.proximo-ident { display: flex; align-items: center; }
.loteria-badge { max-width: 100%; height: auto; }
.proximo-dado { display: flex; flex-direction: column; gap: 4px; }
.proximo-dado .rotulo { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.proximo-dado strong { font-size: 1.3rem; color: #003a6e; }
.proximo-dado strong.premio { color: #1a7f37; }

.proximo-acoes { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-ver-boloes { display: inline-block; background: #1a7f37; color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; text-align: center; }
.btn-ver-boloes:hover { background: #14632c; }
.btn-resultado { display: inline-block; color: #1a7f37; font-size: 0.85rem; text-decoration: none; text-align: center; }
.btn-resultado:hover { text-decoration: underline; }

.proximo-ultimo { border-top: 1px solid #bdbdbd; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.proximo-ultimo .rotulo { font-size: 0.8rem; color: #555; }
.dezenas { display: flex; flex-wrap: wrap; gap: 6px; }
.bola { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #1a7f37; color: #fff; font-weight: 700; font-size: 0.8rem; }
.badge-acumulado { display: inline-block; background: #f5b301; color: #003a6e; padding: 4px 10px; border-radius: 20px; font-weight: 700; font-size: 0.75rem; align-self: flex-start; }
.badge-ganhadores { display: inline-block; background: #e8f5e9; color: #1a7f37; padding: 4px 10px; border-radius: 20px; font-weight: 600; font-size: 0.75rem; align-self: flex-start; }
.badge-premio { display: inline-block; color: #555; font-size: 0.75rem; }

/* ===== Rodapé ===== */
.site-footer { background: #003a6e; color: #fff; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid strong { display: block; margin-bottom: 12px; color: #f5b301; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-legal { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.8rem; color: #ccc; }

/* ===== Responsividade (hambúrguer) ===== */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .navbar-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #003a6e; flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 150; margin: 0; }
    .navbar-menu.open { display: flex; }
    .navbar-menu a { font-size: 1.4rem; }
    .navbar-auth { margin-left: 0; }
    .proximos-list { grid-template-columns: 1fr; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* ===== OTIMIZAÇÃO MOBILE ===== */
@media (max-width: 700px) {
    .premium-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .premium-concurso, .premium-data { min-width: 0; width: 100%; }
    .premium-dezenas { justify-content: flex-start; width: 100%; }
    .premium-bola { width: 30px; height: 30px; font-size: 0.75rem; }
    .premium-cabecalho { gap: 12px; padding: 14px; }
    .premium-logo { width: 70px; }
    .premium-lista { padding: 8px 14px 14px; }
    .rateios thead { display: none; }
    .rateios, .rateios tbody, .rateios tr, .rateios td { display: block; width: 100%; }
    .rateios tr { border: 1px solid #e5e5e5; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: #fafafa; }
    .rateios td { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border: none; text-align: right; }
    .rateios td::before { font-weight: 700; color: #003a6e; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; }
    .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); gap: 10px; }
    .loteria-opcao { padding: 10px 6px; gap: 6px; font-size: 0.8rem; }
    .loteria-logo { width: 60px; max-width: 60px; max-height: 45px; }
    .prompts-grid { grid-template-columns: 1fr; }
    .proximo-row { padding: 16px; gap: 12px; }
    .loteria-badge { width: 64px; max-width: 64px; }
    .proximo-dado strong { font-size: 1.1rem; }
    .btn-ver-boloes, .btn-resultado { width: 100%; padding: 12px 10px; }
    .bola { width: 28px; height: 28px; font-size: 0.7rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .navbar { padding: 10px 14px; gap: 12px; }
    .logo-grande { height: 40px; }
    .topbar-contato { gap: 12px; font-size: 0.75rem; }
    .topbar-inner { padding: 6px 14px; }
}
@media (max-width: 380px) {
    .premium-bola { width: 28px; height: 28px; font-size: 0.7rem; }
    .loterias-menu { grid-template-columns: repeat(2, 1fr); }
    .bola { width: 24px; height: 24px; font-size: 0.65rem; }
    .loteria-badge { width: 52px; }
    .topbar-item { font-size: 0.7rem; }
}

/* ===== OTIMIZAÇÃO MOBILE ===== */
@media (max-width: 700px) {
    .premium-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .premium-concurso, .premium-data { min-width: 0; width: 100%; }
    .premium-dezenas { justify-content: flex-start; width: 100%; }
    .premium-bola { width: 30px; height: 30px; font-size: 0.75rem; }
    .premium-cabecalho { gap: 12px; padding: 14px; }
    .premium-logo { width: 70px; }
    .premium-lista { padding: 8px 14px 14px; }
    .rateios thead { display: none; }
    .rateios, .rateios tbody, .rateios tr, .rateios td { display: block; width: 100%; }
    .rateios tr { border: 1px solid #e5e5e5; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: #fafafa; }
    .rateios td { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border: none; text-align: right; }
    .rateios td::before { font-weight: 700; color: #003a6e; font-size: 0.7rem; text-transform: uppercase; }
    .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); gap: 10px; }
    .loteria-opcao { padding: 10px 6px; gap: 6px; font-size: 0.8rem; }
    .loteria-logo { width: 60px; max-width: 60px; max-height: 45px; }
    .prompts-grid { grid-template-columns: 1fr; }
    .proximo-row { padding: 16px; gap: 12px; }
    .loteria-badge { width: 64px; max-width: 64px; }
    .proximo-dado strong { font-size: 1.1rem; }
    .btn-ver-boloes, .btn-resultado { width: 100%; padding: 12px 10px; }
    .bola { width: 28px; height: 28px; font-size: 0.7rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .navbar { padding: 10px 14px; gap: 12px; }
    .logo-grande { height: 40px; }
    .topbar-contato { gap: 12px; font-size: 0.75rem; }
    .topbar-inner { padding: 6px 14px; }
}
@media (max-width: 380px) {
    .premium-bola { width: 28px; height: 28px; font-size: 0.7rem; }
    .loterias-menu { grid-template-columns: repeat(2, 1fr); }
    .bola { width: 24px; height: 24px; font-size: 0.65rem; }
    .loteria-badge { width: 52px; }
    .topbar-item { font-size: 0.7rem; }
}
