/* navbar_style.css - Estilos Exclusivos da Barra de Navegação */

/* Nota: Este arquivo depende das variáveis (:root) definidas no style.css principal. 
   Se for usar isoladamente, certifique-se de definir as cores (--primary-cyan, --deep-bg, etc). */

/* --- ANIMAÇÃO DE ENTRADA --- */
@keyframes slideDown { 
    0% { transform: translateY(-100%); opacity: 0; } 
    100% { transform: translateY(0); opacity: 1; } 
}

/* --- BARRA PRINCIPAL (DESKTOP) --- */
.lp-navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 110px; 
    background: rgba(3, 11, 20, 0.95); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 5%; 
    z-index: 9999; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Fallback para var(--glass-border) */
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
}

/* LOGO */
.lp-nav-logo img { 
    height: 80px; 
    width: auto; 
    transition: 0.3s; 
    display: block;
}
.lp-nav-logo:hover img { 
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.6)); 
    transform: scale(1.05); 
}

/* SELETOR DE IDIOMAS (Desktop) */
.lang-selector { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    margin-left: auto; 
    margin-right: 30px; 
}
.lang-btn { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.lang-btn img { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid rgba(255,255,255,0.2); 
    box-shadow: 0 0 5px rgba(0,0,0,0.3); 
}
.lang-btn:hover img { 
    transform: scale(1.15); 
    border-color: #00f2ff; /* var(--primary-cyan) */
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4); 
}

/* LINKS DO MENU (Desktop) */
.lp-nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}
.lp-nav-links a { 
    text-decoration: none; 
    color: #b0b8c4; /* var(--text-gray) */
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: 0.3s; 
    padding: 10px 0; 
    position: relative; 
    font-family: 'Poppins', sans-serif;
}
/* Hover nos links normais */
.lp-nav-links a:not(.btn-nav-client):hover, 
.lp-nav-links a:not(.btn-nav-client).active { 
    color: #fff; 
}
.lp-nav-links a:not(.btn-nav-client)::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: #00f2ff; /* var(--primary-cyan) */
    transition: 0.3s; 
}
.lp-nav-links a:not(.btn-nav-client):hover::after, 
.lp-nav-links a:not(.btn-nav-client).active::after { 
    width: 100%; 
}

/* BOTÃO ÁREA CLIENTE (Estilo Desktop) */
.btn-nav-client { 
    color: #00f2ff !important; /* var(--primary-cyan) */
    border: 1px solid #00f2ff; 
    border-radius: 20px; 
    padding: 8px 25px !important; 
    transition: 0.3s;
}
.btn-nav-client::after { display: none !important; }
.btn-nav-client:hover { 
    background: rgba(0, 242, 255, 0.1); 
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2); 
}

/* BOTÃO HAMBURGUER (Padrão: Oculto) */
.lp-menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    width: 44px; 
    height: 44px; 
    flex-direction: column; 
    justify-content: center; 
    gap: 6px; 
    z-index: 10001; 
}
.lp-menu-toggle span { 
    display: block; 
    width: 30px; 
    height: 3px; 
    background: #00f2ff; /* var(--primary-cyan) */
    border-radius: 2px; 
    transition: all 0.3s ease-in-out; 
    margin: 0 auto; 
}
/* Animação do X */
.lp-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.lp-menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.lp-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* --- RESPONSIVIDADE E MENU MOBILE --- */
@media (max-width: 900px) {
    .lp-navbar { 
        padding: 0 20px; 
        height: 90px; 
    }
    .lp-nav-logo img { 
        height: 60px; 
    }

    /* POSICIONAMENTO DAS BANDEIRAS (Ao lado do X) */
    .lang-selector { 
        position: absolute; 
        top: 28px; 
        right: 65px; 
        margin: 0; 
    }
    .lang-btn img { 
        width: 30px; 
        height: 30px; 
    }
    
    .lp-menu-toggle { 
        display: flex; 
    }
    
    /* GAVETA DO MENU (Lateral) - COM LARGURA AUTOMÁTICA */
    .lp-nav-links { 
        position: fixed; 
        top: 0; 
        right: 0; 
        height: 100vh; 
        
        /* AJUSTE DINÂMICO DE LARGURA */
        width: auto;              /* Permite crescer conforme o conteúdo */
        min-width: 260px;         /* Mantém um tamanho mínimo elegante */
        max-width: 90vw;          /* Impede cobrir a tela inteira por segurança */
        
        flex-direction: column; 
        padding-top: 90px; 
        background: #051021;      /* var(--deep-bg) */
        transform: translateX(100%); 
        transition: 0.4s; 
        border-left: 1px solid rgba(255, 255, 255, 0.08); 
        align-items: flex-start; 
        z-index: 10000; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.8); 
    }
    .lp-nav-links.open { 
        transform: translateX(0); 
    }
    
    /* LINKS NO MOBILE */
    .lp-nav-links li { 
        width: 100%; 
    }
    .lp-nav-links a { 
        width: 100%; 
        padding: 10px 25px; 
        border-bottom: 1px solid rgba(255,255,255,0.03); 
        font-size: 0.95rem; 
        display: block;
        
        /* IMPEDE QUEBRA DE LINHA (Força o menu a alargar) */
        white-space: nowrap; 
    }
    .lp-nav-links a::after { 
        display: none; 
    } 

    /* BOTÃO ÁREA CLIENTE NO MOBILE */
    .lp-nav-links a.btn-nav-client {
        display: inline-block !important; 
        width: auto !important;
        margin: 20px 25px !important; 
        padding: 8px 20px !important;
        background: rgba(0, 242, 255, 0.05);
        border: 1px solid #00f2ff !important;
        text-align: center;
        font-size: 0.9rem;
    }
}