/* Responsive Header Styles */
.main-header {
    width: 100%;
    color: var(--white);
    background-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-complete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1rem 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0.1rem 1.5rem;
}

.bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.1rem 1.5rem 0.8rem 1.5rem;
}

.header-content h1 {
    margin: 0;
    font-size: 1.8rem;
}

.clear-a-styles {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.clear-a-styles:hover {
    color: var(--accentLight);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0.3rem;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* User Controls */
.user-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1.5rem;
}

.profile-link {
    font-weight: 500;
    color: var(--accentLight) !important; /* Using variable instead of hardcoded color */
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.svg-icon {
    transition: transform 0.3s ease;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--primaryLight);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
}

.lang-dropdown-content.show-dropdown {
    display: block;
}

.lang-dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-dropdown-content a:last-child {
    border-bottom: none;
}

.active-lang {
    background-color: var(--primary);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 100;
    outline: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 99;
        overflow-y: auto;
    }
    
    .main-nav.show {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .user-controls {
        margin-left: 0;
        margin-top: 2rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
    }
    
    .main-nav a {
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    /* Animated hamburger to X */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .lang-dropdown {
        width: 100%;
    }
    
    .lang-dropdown-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .lang-dropdown-content {
        position: relative;
        width: 100%;
        box-shadow: none;
        margin-top: 0.5rem;
        background-color: var(--primary);
    }
}

@media (max-width: 576px) {
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        width: 100%;
        max-width: 100%;
    }
}
