/*
 * EVO DRONES - Mobile Menu CSS
 * Correção de visibilidade e dimensionamento para menu mobile
 */

/* ==================== OVERLAY ESCURO PARA MENU MOBILE ==================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Fundo escuro semi-transparente */
    backdrop-filter: blur(5px); /* Blur para melhor separação visual */
    z-index: 998; /* Acima do conteúdo, abaixo do menu e navbar */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== NAVBAR TRANSLÚCIDA EM MOBILE ==================== */
@media (max-width: 767.98px) {
    nav.fixed {
        background: rgba(15, 23, 42, 0.95) !important; /* Fundo sólido em mobile */
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(48, 180, 232, 0.3);
        z-index: 999; /* Sempre acima do overlay */
    }
}

/* ==================== MENU MOBILE ESTILIZADO ==================== */
#mobile-menu {
    background: rgba(15, 23, 42, 0.98); /* Fundo escuro sólido */
    backdrop-filter: blur(20px); /* Blur intenso */
    border-top: 2px solid rgba(48, 180, 232, 0.3); /* Borda superior destacada */
    border-radius: 0 0 16px 16px;
    padding: 24px;
    margin: 16px -24px 0 -24px; /* Expandir para as bordas */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px); /* Altura máxima */
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 1000; /* Sempre acima do overlay */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ITENS DO MENU MOBILE ==================== */
#mobile-menu .nav-link {
    color: #E0F2FE !important; /* Texto claro */
    padding: 14px 16px !important;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(48, 180, 232, 0.1); /* Fundo sutil para cada item */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(48, 180, 232, 0.2);
    text-decoration: none;
}

#mobile-menu .nav-link:hover {
    background: rgba(48, 180, 232, 0.2);
    border-color: rgba(48, 180, 232, 0.4);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 180, 232, 0.2);
}

#mobile-menu .nav-link-active {
    background: linear-gradient(135deg, rgba(48, 180, 232, 0.3), rgba(14, 139, 192, 0.3));
    border-color: rgba(48, 180, 232, 0.5);
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(48, 180, 232, 0.3);
}

/* ==================== CONTAINER DE BOTÕES ==================== */
#mobile-menu .nav-btn-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(48, 180, 232, 0.3);
}

#mobile-menu .nav-btn-container .nav-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(48, 180, 232, 0.3);
}

#mobile-menu .nav-btn-container .nav-link:hover {
    background: linear-gradient(135deg, #40C4F0, #1A9BC4);
    box-shadow: 0 6px 20px rgba(48, 180, 232, 0.4);
    transform: translateY(-2px);
}

#mobile-menu .nav-btn-container .nav-link i {
    font-size: 18px;
}

/* ==================== ÍCONE DO BOTÃO HAMBURGUER ==================== */
#mobile-menu-button {
    background: rgba(48, 180, 232, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(48, 180, 232, 0.3);
    transition: all 0.3s ease;
}

#mobile-menu-button:hover {
    background: rgba(48, 180, 232, 0.2);
    border-color: rgba(48, 180, 232, 0.5);
    box-shadow: 0 4px 12px rgba(48, 180, 232, 0.2);
}

#mobile-menu-button i {
    color: #E0F2FE;
    transition: transform 0.3s ease;
}

#mobile-menu-button:hover i {
    transform: rotate(90deg);
}

/* ==================== ANIMAÇÃO DE ENTRADA DO MENU ==================== */
@media (prefers-reduced-motion: no-preference) {
    #mobile-menu.hidden {
        display: none;
    }
    
    #mobile-menu:not(.hidden) {
        display: block;
    }
}

/* ==================== SCROLLBAR PERSONALIZADA ==================== */
#mobile-menu::-webkit-scrollbar {
    width: 6px;
}

#mobile-menu::-webkit-scrollbar-track {
    background: rgba(48, 180, 232, 0.1);
    border-radius: 10px;
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(48, 180, 232, 0.3);
    border-radius: 10px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 180, 232, 0.5);
}

/* ==================== RESPONSIVIDADE EXTRA ==================== */
@media (max-width: 480px) {
    #mobile-menu {
        padding: 20px;
    }
    
    #mobile-menu .nav-link {
        padding: 12px 14px !important;
        font-size: 15px;
    }
}

/* ==================== EVITAR SCROLL DO BODY QUANDO MENU ABERTO ==================== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==================== MELHORAR VISIBILIDADE DO LOGO NO MOBILE ==================== */
@media (max-width: 767.98px) {
    nav .orbitron {
        font-size: 18px !important;
        color: #E0F2FE !important;
        text-shadow: 0 0 10px rgba(224, 242, 254, 0.5);
    }
}

