﻿/* --- Header Layout --- */
.header-container {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Glassmorphism background using theme vars */
    background: rgba(var(--color-5-rgb), 0.95);
    border-bottom: 1px solid rgba(126, 103, 81, 0.2); /* Color 4 opacity */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Navigation Links (Desktop) --- */
.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-link-custom {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

    .nav-link-custom::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--color1);
        transition: width 0.3s ease;
    }

    .nav-link-custom:hover::after {
        width: 100%;
    }

    .nav-link-custom.active {
        color: var(--color1) !important;
    }

        .nav-link-custom.active::after {
            width: 100%;
        }

.lang-select-wrapper select {
    background-color: transparent;
    color: var(--color2);
    border: 1px solid var(--color4);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
}

    .lang-select-wrapper select:hover,
    .lang-select-wrapper select:focus {
        border-color: var(--color1);
        box-shadow: 0 0 10px rgba(158, 97, 85, 0.2);
    }

.lang-select-wrapper option {
    background-color: var(--color5);
    border-radius: 9999px;
    cursor: pointer;
}

/* --- Mobile Sidebar --- */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--color5);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color4);
}

    .sidebar.active {
        transform: translateX(0);
    }

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.sidebar-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.25rem;
    color: var(--color2);
    text-decoration: none;
    border-bottom: 1px solid rgba(126, 103, 81, 0.3);
    padding-bottom: 0.5rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

    .mobile-nav-link:hover {
        color: var(--color1);
        padding-left: 10px;
        border-color: var(--color1);
    }
/* --- Hamburger Icon --- */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--color2);
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background-color: var(--color1);
}
/* Close Icon */
.close-btn {
    background: none;
    border: none;
    color: var(--color2);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

    .close-btn:hover {
        color: var(--color1);
    }
/* --- Responsive Layout Logic --- */
/* Desktop Default */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}
/* Mobile View (< 992px) */
@media (max-width: 991.98px) {
    .header-container {
        padding: 0.8rem 1.5rem;
    }

    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none;
    }
    /* Layout: Logo (Left) - Lang (Center) - Hamburger (Right) */
    .header-content {
        display: contents; /* Allows children to participate in flex container */
    }
}