/* ============================================================
   GLOBAL.CSS — AJUSTES UNIVERSAIS DO TEMA FILHO
   ============================================================ */

/* Reset leve existente */
* {
    box-sizing: border-box;
}

/* Reset adicional necessário */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* Suavização */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Inputs */
button,
input,
select,
textarea {
    outline: none;
    font-family: inherit;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Astra container */
.ast-container {
    margin-left: auto;
    margin-right: auto;
}

/* Remover fundos do Astra */
.site-footer,
.ast-footer-overlay,
.ast-footer-bar,
.ast-builder-footer {
    background: none !important;
    box-shadow: none !important;
}

/* Remover faixa do Astra Builder */
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    background: none !important;
    border: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* Admin bar escondido no mobile */
@media (max-width: 782px) {
    #wpadminbar {
        display: none !important;
    }
    html {
        margin-top: 0 !important;
    }
}

/* ============================================================
   CLASSES UTILITÁRIAS
   ============================================================ */

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen {
    min-height: 100vh;
    width: 100%;
}

.text-white {
    color: #fff !important;
}

.bg-overlay-dark {
    position: relative;
}

.bg-overlay-dark:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}

.relative {
    position: relative;
    z-index: 2;
}

/* ============================================================
   MENU HAMBÚRGUER — REGRAS DE VISIBILIDADE
   ============================================================ */

/* Esconder completamente o menu hambúrguer para deslogados */
body:not(.logged-in) .menu-hamburguer-wrapper {
    display: none !important;
}

/* Esconder completamente o menu hambúrguer na página de login */
body.page-template-tela-de-login .menu-hamburguer-wrapper {
    display: none !important;
}

body.page-template-tela-de-login .ast-mobile-header-wrap,
body.page-template-tela-de-login .main-header-menu-toggle {
    display: none !important;
}

/* Esconder menu mobile do Astra em QUALQUER página */
.ast-mobile-header-wrap,
.main-header-menu-toggle {
    display: none !important;
}

/* Corrigir texto do calendário no painel */
#calendario-diarios,
#calendario-diarios * {
    color: #000 !important;
}

body.page-template-painel,
body.page-template-painel * {
    color: #000 !important;
}

/* Botões do painel com texto branco */
body.page-template-painel button,
body.page-template-painel .button,
body.page-template-painel .btn {
    color: #fff !important;
}

/* Botões do painel (calendário e modal) com texto branco */
#calendario-diarios .diarios-header button,
#calendario-diarios .diarios-calendario button,
#conteudo-modal button,
#calendario-diarios .diarios-processar,
#calendario-diarios .diarios-controle-apostas,
#conteudo-modal .btn-editar-diario,
#conteudo-modal .btn-excluir-diario,
#conteudo-modal #btn-criar-diario,
#conteudo-modal #btn-salvar-diario,
#conteudo-modal #btn-cancelar-diario {
    color: #fff !important;
}