/*
Theme Name: Widemax Elite
Author: Widemax
Description: Design de Elite & IA - Dark Mode Premium
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

/* --- CONFIGURAÇÕES GERAIS --- */
body {
    background-color: #020617;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    overflow-x: hidden;
}

/* Efeito de Vidro (Glassmorphism) */
.glass-card { 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(12px); 
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

/* --- MENU DINÂMICO & BOTÃO DESTAQUE (DESKTOP) --- */
ul li a { 
    transition: all 0.3s ease; 
}

/* Estilo para item ativo (página atual) */
.current-menu-item a { 
    color: #ffffff !important;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 4px;
}

@media (min-width: 768px) {
    /* Transforma o ÚLTIMO item da lista em um BOTÃO AZUL */
    nav ul li:last-child a {
        background-color: #0066ff !important;
        color: #ffffff !important;
        padding: 10px 22px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3) !important;
        border-bottom: none !important; /* Remove a linha de página atual do botão */
        display: inline-block !important;
        margin-left: 15px;
    }

    nav ul li:last-child a:hover {
        background-color: #0052cc !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5) !important;
    }

    /* Ajuste para não aparecer borda inferior se o botão for a página atual */
    nav ul li:last-child.current-menu-item a {
        border-bottom: none !important;
        padding-bottom: 10px !important;
    }
}

/* --- AJUSTES MENU MOBILE (FIX CONTATO SUMIDO) --- */
#mobile-menu {
    overflow-y: auto; /* Permite rolar se o menu for grande */
    padding: 120px 20px; /* Evita que o conteúdo cole no topo/base */
}

@media (max-width: 767px) {
    /* Garante que os links no mobile sejam brancos e visíveis */
    #mobile-menu ul li a {
        color: #ffffff !important;
        font-size: 1.25rem;
        display: block;
        padding: 10px 0;
    }

    /* Transforma o último item em um botão grande no mobile */
    #mobile-menu ul li:last-child a {
        background-color: #0066ff !important;
        padding: 16px 40px !important;
        border-radius: 16px !important;
        margin-top: 20px !important;
        text-align: center;
        font-weight: 700;
        box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
        border: none !important;
    }

    /* Estado ativo no mobile */
    #mobile-menu ul li.current-menu-item a {
        color: #0066ff !important;
        border: none;
    }
}

/* --- ANIMAÇÃO DO HAMBÚRGUER --- */
.hamburger.active .line-1 { transform: translateY(8px) rotate(45deg); }
.hamburger.active .line-2 { opacity: 0; }
.hamburger.active .line-3 { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- ESTILOS DE BLOG (TYPOGRAPHY) --- */
.prose-invert {
    color: #94a3b8;
}

.prose-invert h1, .prose-invert h2, .prose-invert h3 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.prose-invert p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose-invert strong { color: #ffffff; }

/* Barra de Progresso Customizada */
#reading-progress {
    background: linear-gradient(to right, #0044cc, #0066ff);
}