/* assets/css/header.css */

/* Variáveis locais para o header */
:root {
    --header-height: 70px;
    --header-bg: rgba(15, 23, 42, 0.85);
    /* Slate 900 com transparência */
    --header-border: 1px solid rgba(255, 255, 255, 0.1);
    --header-backdrop: blur(12px);
    --mobile-menu-bg: #1e293b;
}

/* Header Container */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: var(--header-backdrop);
    -webkit-backdrop-filter: var(--header-backdrop);
    border-bottom: var(--header-border);
    width: 100%;
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    background: linear-gradient(to right, #fbbf24, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Buttons Group */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-login {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-header-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-header-register {
    background: var(--primary-color);
    color: #0f172a;
    /* Texto escuro para contraste no amarelo */
    text-decoration: none;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 8px;
    transition: 0.2s;
    box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.2);
}

.btn-header-register:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(251, 191, 36, 0.4);
}

/* User Profile Dropdown (Desktop) */
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

/* Mobile Menu (Off-canvas) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 280px;
    height: 100vh;
    background: var(--mobile-menu-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 20px 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 18px;
    /* Slide effect */
}

/* Responsive Breakpoints */
@media (max-width: 992px) {

    .desktop-nav,
    .auth-buttons {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}