/* ============================================
   HEADER PÚBLICO - CSS COMPLETO E MELHORADO
   ============================================ */

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============================================
   NAVBAR PRINCIPAL
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    padding: 0.85rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: #1e40af;
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links do Menu */
.nav-link {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

/* Efeito underline animado */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #2563eb;
}

/* Botões de Ação */
.btn-login, .btn-register {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    color: #2563eb;
    background: transparent;
    border: 1.5px solid #2563eb;
}

.btn-login:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-register {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #2563eb;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 65px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .nav-link::after {
        bottom: 0.5rem;
    }

    .btn-login, .btn-register {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        margin-top: 0.25rem;
    }

    .btn-login {
        background: transparent;
        border: 1.5px solid #2563eb;
    }

    .btn-register {
        background: linear-gradient(135deg, #2563eb, #1e40af);
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand i {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 85%;
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: fadeInDown 0.5s ease;
}

 /*============================================
   DARK MODE (Opcional - se quiseres adicionar)
   ============================================ */

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.98);
}

body.dark-mode .navbar-brand {
    color: #60a5fa;
}

body.dark-mode .nav-link {
    color: #cbd5e1;
}

body.dark-mode .nav-link:hover {
    color: #60a5fa;
}

body.dark-mode .btn-login {
    color: #60a5fa;
    border-color: #60a5fa;
}

body.dark-mode .nav-menu {
    background: #0f172a;
}
