:root {
    --header-height: 80px;
    --header-background-color: rgba(107, 107, 107, 0.185);
    --header-text-color: #fff;
    --header-link-color: #D1A23E;
    --button-hover-color: #B8941A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    width: 100vw;
    height: var(--header-height);
    background-color: var(--header-background-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.left-buttons,
.right-buttons {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.right-buttons {
    justify-content: flex-end;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

button {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--header-text-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    border-bottom-color: var(--header-link-color);
    color: var(--header-link-color);
}

.login-btn {
    border: 2px solid var(--header-link-color);
    background-color: var(--header-link-color);
    color: #000;
    border-radius: 25px;
}

.login-btn:hover {
    background-color: var(--button-hover-color);
    border-color: var(--button-hover-color);
    box-shadow: 0 4px 12px rgba(209, 162, 62, 0.4);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    border: 2px solid var(--header-link-color);
    background-color: var(--header-link-color);
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.user-btn:hover {
    background-color: var(--button-hover-color);
    border-color: var(--button-hover-color);
    box-shadow: 0 4px 12px rgba(209, 162, 62, 0.4);
}

.user-icon {
    font-size: 1.2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-background-color);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--header-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--header-link-color);
    color: #000;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-background-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 300px;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav button {
    width: 100%;
    text-align: left;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    border-top: none;
    background: none;
    color: var(--header-text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav button:hover {
    background-color: rgba(209, 162, 62, 0.1);
    color: var(--header-link-color);
    border-bottom-color: transparent;
    transform: none;
}

.mobile-user-actions {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-actions a {
    display: block;
    color: var(--header-text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-user-actions a:hover {
    color: var(--header-link-color);
}

@media (max-width: 768px) {
    .header-nav {
        padding: 0 1rem;
    }
    
    .left-buttons,
    .right-buttons {
        gap: 0.5rem;
    }
    
    button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 40px;
    }
}

@media (max-width: 900px) {
    .left-buttons button:nth-child(3),
    .right-buttons button:nth-child(1) {
        display: none;
    }
}

@media (max-width: 700px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .left-buttons,
    .right-buttons {
        display: none;
    }
    
    .header-nav {
        justify-content: space-between;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .user-dropdown {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-nav {
        padding: 0 0.5rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    :root {
        --header-height: 70px;
    }
}
