/*
Theme Name: Gi Nadai Theme
Theme URI: https://ginadai.com.br
Author: Seu Nome
Description: Tema personalizado Dark Neon para Gi Nadai.
Version: 1.0
*/

/* --- CONFIGURAÇÕES GLOBAIS (VARIÁVEIS) --- */

/* =========================================
   ESTILOS DO MENU (HEADER & FOOTER)
   ========================================= */

/* --- HEADER FIXO/FLUTUANTE --- */
.site-header {
    position: absolute; /* Fica por cima da imagem */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Sombra suave para ler o texto */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* --- LOGO --- */
.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- LISTA DE LINKS (O Menu em si) --- */
.menu-lista, .menu-lista-footer {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-lista li a, .menu-lista-footer li a {
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

/* Efeito Hover (Neon) */
.menu-lista li a:hover, .menu-lista-footer li a:hover,
.menu-lista li.current-menu-item a {
    color: white;
    text-shadow: 0 0 10px var(--roxo-gi);
}

/* Sublinhado animado */
.menu-lista li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--roxo-gi);
    transition: width 0.3s;
    box-shadow: var(--sombra-neon);
}

.menu-lista li a:hover::after {
    width: 100%;
}

/* --- ESTILOS DO RODAPÉ --- */
.site-footer {
    background-color: #050505;
    border-top: 1px solid #222;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto; /* Empurra rodapé para baixo em páginas curtas */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Menu do rodapé centralizado e menor */
.menu-lista-footer {
    justify-content: center;
    flex-wrap: wrap;
}

.menu-lista-footer li a {
    font-size: 0.8rem;
    color: #666;
}

.menu-lista-footer li a:hover {
    color: var(--lilas-texto);
}

.copyright {
    color: #444;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Responsividade Mobile: Empilhar itens */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .menu-lista {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Correção de segurança para o Menu */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Garante que fique acima de tudo */
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.menu-lista {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu-lista a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

/* =======================================================
   CORREÇÃO DE EMERGÊNCIA: HEADER DA HOME
   ======================================================= */

.site-header {
    position: absolute !important; /* Garante que flutue sobre a imagem */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    /* O Z-INDEX ALTO é o segredo. Coloca ele na frente da imagem Hero */
    z-index: 99999 !important; 
    padding: 20px 0;
}

/* CORREÇÃO CRÍTICA DO WORDPRESS:
   Quando você está logado, o WP coloca uma barra preta de 32px no topo.
   Como seu menu é 'top:0', ele fica ESCONDIDO atrás dessa barra.
   Isso empurra o menu para baixo apenas se a barra existir.
*/
.admin-bar .site-header {
    top: 32px !important;
}

/* Mobile: A barra do admin é maior (46px) em telas pequenas */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
    }
}

/* Garantir que o texto do logo e menu seja branco e legível */
.site-header a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Sombra para ler se o fundo for claro */
}

/* Garante que o container Hero não tenha z-index maior que o header */
.hero {
    position: relative;
    z-index: 1; /* Menor que o 99999 do header */
}


:root {
    --cor-fundo: #0a0a0a; /* Preto Suave */
    --cor-card: #141414;  /* Cinza Chumbo */
    --roxo-gi: #5E2C82;   /* Extraído da Logo */
    --lilas-texto: #9D85BB; /* Extraído da Logo */
    --branco: #ffffff;
    --sombra-neon: 0 0 15px rgba(94, 44, 130, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--cor-fundo);
    color: var(--branco);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* --- HERO SECTION (TOPO) --- */
.hero {
    height: 90vh;
    /* Nota: A imagem de fundo está hardcoded aqui, idealmente seria dinâmica no futuro */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://ginadai.com.br/wp-content/uploads/2026/01/Imagem-do-WhatsApp-de-2025-09-09-as-16.30.18_d535ddeb.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content span {
    color: var(--lilas-texto);
}

.hero-content p {
    font-size: 1.2rem;
    color: #d1d1d1;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BOTÃO NEON --- */
.btn-gi {
    background: linear-gradient(90deg, var(--roxo-gi) 0%, #7A40A3 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-gi:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-neon);
}

/* --- SEÇÃO DE PLANOS (CARDS) --- */
.section-planos {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.grid-planos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--cor-card);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px 20px;
    width: 300px;
    transition: 0.3s;
    position: relative;
}

.card:hover {
    border-color: var(--roxo-gi);
    transform: scale(1.02);
    box-shadow: var(--sombra-neon);
}

.card h3 {
    color: var(--lilas-texto);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    color: #ccc;
}

.card ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: var(--roxo-gi);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero { height: auto; padding: 100px 20px; }
}

/* --- SEÇÃO SOBRE (BIO) --- */
.section-sobre {
    padding: 80px 20px;
    background-color: #0F0F0F;
}

.sobre-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px; /* Ajustado de 5px para 30px para melhor respiro */
    flex-wrap: wrap;
}

/* Borda Gradiente estilo Stories */
.insta-borda {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 4px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sobre-foto {
    display: block;
    width: 100%;
    max-width: 350px;
    border-radius: 16px;
    border: 5px solid var(--cor-card);
}

.sobre-content {
    flex: 1;
    min-width: 300px;
}

.sobre-titulo {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sobre-subtitulo {
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.sobre-texto {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.sobre-lista {
    list-style: none;
    margin-bottom: 30px;
}

.sobre-lista li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Botão específico do Instagram */
.btn-insta {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--roxo-gi);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-insta:hover {
    background: var(--roxo-gi);
    box-shadow: var(--sombra-neon);
}

.sobre-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--branco);
}

.stat-item span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}
/* =========================================
   ESTILOS PARA PÁGINAS INTERNAS, WOOCOMMERCE & PMS
   ========================================= */

/* Container da página (criado no page.php) */
.page-container {
    padding: 120px 20px 60px 20px; /* Espaço para não ficar atrás do menu se houver */
    min-height: 80vh;
}

.page-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--cor-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-title {
    color: var(--roxo-gi);
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* --- FORMULÁRIOS GERAIS (Inputs de Login, Checkout, Cadastro) --- */
input[type="text"], input[type="email"], input[type="password"], 
input[type="tel"], textarea, select, .woocommerce input.input-text {
    background-color: #0a0a0a !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    width: 100%;
    margin-bottom: 15px;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--roxo-gi) !important;
    box-shadow: 0 0 8px rgba(94, 44, 130, 0.3);
}

/* Labels (Textos acima dos inputs) */
label {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* --- BOTÕES DO WOOCOMMERCE & PMS --- */
.woocommerce button.button, 
.woocommerce a.button, 
.woocommerce input.button,
.pms-account-subscription-details .pms-button,
input[type="submit"] {
    background: linear-gradient(90deg, var(--roxo-gi) 0%, #7A40A3 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: 0.3s;
}

.woocommerce button.button:hover, 
.woocommerce a.button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-neon);
    color: #fff !important;
}

/* --- TABELAS (Carrinho, Pedidos, Assinaturas) --- */
table.shop_table, table.pms-account-subscription-details-table {
    border: 1px solid #333 !important;
    border-radius: 10px;
    border-collapse: collapse; 
    width: 100%;
    margin-bottom: 20px;
}

table th {
    background-color: #222;
    color: var(--lilas-texto);
    padding: 15px;
    text-align: left;
}

table td {
    background-color: var(--cor-card);
    border-top: 1px solid #333;
    padding: 15px;
    color: #ddd;
}

/* Preços e Totais */
.woocommerce-Price-amount {
    color: var(--branco);
    font-weight: bold;
}

/* --- WOOCOMMERCE ESPECÍFICO --- */
/* Mensagens de erro/sucesso */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background-color: #222 !important;
    color: #fff !important;
    border-top: 3px solid var(--roxo-gi) !important;
}

.woocommerce-error {
    border-top-color: #d63031 !important;
}

/* Navegação da Minha Conta */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #333;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--roxo-gi);
    color: white;
}

/* Layout Flex para Minha Conta (Menu na lateral) */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.woocommerce-MyAccount-navigation { flex: 1; min-width: 200px; }
.woocommerce-MyAccount-content { flex: 3; min-width: 300px; }

/* Remover fundos brancos padrão do Woo */
.woocommerce-checkout #payment {
    background: #0a0a0a !important;
    border-radius: 10px;
}

/* --- PAID MEMBERSHIP SUBSCRIPTIONS (PMS) ESPECÍFICO --- */
ul.pms-plans-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Transformar os radios do PMS em Cards selecionáveis */
.pms-plans-list li {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 10px;
}

.pms-plans-list label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* =======================================================
   CORREÇÃO DEFINITIVA DO MENU (FORÇAR ESTILO)
   ======================================================= */

/* Alvo: Qualquer lista dentro da navegação principal */
.main-nav ul, 
.main-nav .menu-lista,
.main-nav div > ul {
    display: flex !important;
    list-style: none !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap; /* Para não quebrar no mobile */
}

/* Alvo: Qualquer link dentro da navegação */
.main-nav a,
.main-nav ul li a {
    color: #ffffff !important; /* Força Branco */
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px;
}

/* Efeito Neon ao passar o mouse */
.main-nav a:hover,
.main-nav ul li a:hover {
    color: var(--roxo-gi) !important;
    text-shadow: 0 0 10px var(--roxo-gi);
}

/* Garante que o container do header flutue corretamente */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* =========================================
   MENU MOBILE (RESPONSIVIDADE)
   ========================================= */

/* 1. Esconder elementos Mobile no Desktop */
.btn-mobile, .mobile-overlay {
    display: none;
}

/* 2. Regras para Telas Menores (Celular/Tablet) */
@media (max-width: 768px) {
    
    /* Esconde o menu desktop normal */
    .desktop-nav {
        display: none !important;
    }

    /* Mostra o botão hambúrguer */
    .btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        
        /* --- O SEGREDO DO CANTO DIREITO --- */
        position: absolute; /* Liberta o botão do fluxo normal */
        right: 20px;        /* Cola ele na direita da tela */
        top: 25px;          /* Ajusta a altura (alinhe com seu logo) */
        /* ---------------------------------- */
        
        z-index: 999999;
    }

    /* Opcional: Se o logo estiver muito grande ou empurrando coisas */
    .header-container {
        justify-content: flex-start; /* No mobile, alinha logo à esquerda */
    }

    /* Desenho do ícone Hambúrguer (Três riscos) */
    .hamburger {
        display: block;
        width: 30px;
        height: 3px;
        background: white;
        position: relative;
        transition: 0.3s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }

    .hamburger::before { top: -10px; }
    .hamburger::after { top: 10px; }

    /* Efeito "X" quando o menu está aberto */
    .btn-mobile.ativo .hamburger {
        background: transparent; /* O risco do meio some */
    }
    .btn-mobile.ativo .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    .btn-mobile.ativo .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* 3. A Tela do Menu Mobile (Overlay) */
    .mobile-overlay {
        display: flex; /* Começa oculto no CSS geral, mas aqui preparamos o display */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98); /* Fundo quase preto total */
        z-index: 999990; /* Logo abaixo do botão */
        align-items: center;
        justify-content: center;
        
        /* Efeito de deslizar */
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
        pointer-events: none; /* Não clica quando invisível */
    }

    /* Quando ativado pelo Javascript */
    .mobile-overlay.ativo {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Estilo dos Links no Mobile */
    .menu-lista-mobile {
        list-style: none;
        text-align: center;
        padding: 0;
    }

    .menu-lista-mobile li {
        margin: 25px 0;
        opacity: 0; /* Animação de entrada */
        transform: translateY(20px);
        transition: 0.4s;
    }

    .mobile-overlay.ativo .menu-lista-mobile li {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-lista-mobile a {
        color: white;
        font-size: 1.5rem; /* Letras grandes */
        text-transform: uppercase;
        font-weight: bold;
        text-decoration: none;
    }

    .menu-lista-mobile a:hover {
        color: var(--roxo-gi);
    }
}