@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap");
@import url("colors.css");

/* Header Horizontal */
.header-horizontal {
    background-color: var(--header-background, #1f1f1f);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Lato', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Section (Left) */
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-icon {
    width: auto;
    height: 40%;
    object-fit: contain;
    display: block;
}

.logo-name {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #f8f5ee;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Navigation Menu (Center) */
.header-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #f8f5ee;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #D4AF37; /* Golden color */
}

.nav-link i {
    font-size: 18px;
}

.nav-item.dropdown .nav-link i.bx-chevron-down {
    font-size: 14px;
    margin-left: 4px;
}

/* User Actions (Right) */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-link {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #D4AF37; /* Golden color */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.action-link.user-link {
    color: #f8f5ee;
    gap: 8px;
}

/* Link Primário - Cadastre-se */
.action-link.register-link {
    background-color: transparent;
    color: #D4AF37; /* Golden text */
    padding: 8px 0;
    border-radius: 0;
    font-weight: 400;
    border: none;
}

.action-link.register-link:hover {
    background-color: transparent;
    color: #C19B2E; /* Darker golden on hover */
    opacity: 1;
}

/* Link Secundário - Entrar */
.action-link.login-link {
    background-color: transparent;
    color: #f8f5ee; /* White text */
    padding: 8px 0;
    border-radius: 0;
    font-weight: 400;
    border: none;
}

.action-link.login-link:hover {
    background-color: transparent;
    color: #f8f5ee;
    opacity: 1;
}

.action-link:hover:not(.register-link):not(.login-link) {
    opacity: 0.8;
}

.action-link i {
    font-size: 20px;
}

.separator {
    width: 1px;
    height: 24px;
    background-color: #D4AF37;
    opacity: 0.5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f8f5ee;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .header-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background-color: var(--header-background, #1f1f1f);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .header-nav.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 16px 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions .action-link span:not(.user-avatar) {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 70px;
    }

    .logo-icon {
        height: 80%;
    }

    .header-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .action-link {
        font-size: 14px;
    }

    .action-link.register-link,
    .action-link.login-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Remove old vertical menu styles */
.l-navbar {
    display: none !important;
}

.header_toggle {
    display: none !important;
}

/* Remove body padding from old vertical menu */
body.body-pd {
    padding-left: 0 !important;
}

/* Body spacing is handled in style.css */
