/* Header styling START */
header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 20px 20px;
    position: fixed;
    top: 20px;
    left: 50%;                     
    transform: translateX(-50%);   
    width: 70%;
    max-width: 95%;
    z-index: 100;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 35px;
    background: rgba(0, 0, 0, 0.11);
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    min-height: 60px;
    box-sizing: border-box;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

header .container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
}

/* Logo */
.header-content .logo {
    text-decoration: none;
    color: #ffffff;
    margin-right: 30px;
    display: flex;
    align-items: center;
    height: 40px;
}

.header-content .logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.header-content .logo p {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 1px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
}

li a {
    position: relative; 
    color: #ffffff;
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    min-height: 40px;
}

li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%);
    width: 0;
    height: 2px; 
    background-color: #C5A059; 
    transition: width 0.3s ease;
}

li a:hover::after,
li a.active::after {
    width: 100%;
}

.nav-left {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-left li {
    margin-left: 30px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-left li a {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.nav-left li a.active {
    color: #C5A059;
    font-weight: 400;
}

.nav-left li a:hover {
    color: #C5A059;
}

.nav-right {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-left: auto;
    align-items: center;
    min-height: 40px;
}

.nav-right li {
    margin-left: 30px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-right li a {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.nav-right li a.active {
    color: #C5A059;
    font-weight: 400;
}

.nav-right li a:hover {
    color: #C5A059;
}

/* Login/User buttons */
.nav a.login-button {
    background-color: #C5A059;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
}

.nav a.login-button:hover {
    background-color: #8e7340;
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 40px;
    box-sizing: border-box;
    min-width: 120px;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Dropdown Menu */
.header-content .main-nav ul li.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.header-content .main-nav ul li.dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
    z-index: 199;
}

.header-content .main-nav ul li.dropdown > a {
    cursor: pointer;
}

.header-content .main-nav ul li.dropdown .dropdown-content li a.active,
.header-content .main-nav ul li.dropdown .dropdown-content li a:hover {
    color: #C5A059;
}

.header-content .main-nav ul li.dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 5px;
}

.header-content .main-nav ul li.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-content .main-nav ul li.dropdown .dropdown-content li {
    margin: 0;
    padding: 8px 12px;
    min-height: auto;
}

.header-content .main-nav ul li.dropdown .dropdown-content li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    min-height: auto;
    padding: 8px 0;
}

.header-content .main-nav ul li.dropdown .dropdown-content li a:hover,
.header-content .main-nav ul li.dropdown:hover > a {
    color: #C5A059;
}

/* Flash Messages */
.flash-message-container {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.flash-message {
    padding: 15px 25px;
    margin: 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    text-align: center;
    animation: fadeInOut 5s ease-in-out;
}

.flash-message.success {
    background-color: #4caf50;
}

.flash-message.error {
    background-color: #ff1100;
}

.flash-message.info {
    background-color: #2196f3;
}

.flash-message.warning {
    background-color: #ff9800;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media query for small screens (max-width: 768px) */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
        min-height: 60px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: auto;
        position: relative;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .header-content .logo {
        margin-bottom: 0;
        font-size: 20px;
        height: auto;
        min-height: 30px;
    }
    
    .header-content .logo p {
        font-size: 20px;
        font-weight: 300;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        display: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        margin-top: 10px;
    }

    .main-nav.active {
        display: flex;
    }
    
    .nav-left, .nav-right {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        min-height: auto;
        width: 100%;
    }
    
    .nav-left li, .nav-right li {
        margin-left: 0;
        margin-bottom: 15px;
        min-height: auto;
        width: 100%;
        text-align: center;
    }
    
    .nav-left li a, .nav-right li a {
        font-size: 18px;
        font-weight: 300;
        min-height: auto;
        display: block;
        padding: 10px;
    }
    
    .nav a.login-button {
        font-size: 18px;
        font-weight: 300;
        padding: 10px 20px;
        height: auto;
        min-height: 36px;
        width: 100%;
        text-align: center;
    }
    
    .user-menu {
        height: auto;
        min-height: 36px;
        padding: 10px;
        justify-content: center;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }

    /* Dropdown handling for mobile */
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-content li {
        margin-bottom: 5px;
    }
    
    .dropdown-content li a {
        padding: 8px;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .dropdown-content li a:hover {
        background: transparent;
        color: #fff;
    }
}

::selection {
    background: rgba(44, 164, 112, 0.3);
}

::-moz-selection {
    background: rgba(44, 164, 112, 0.3);
}
/* Header styling END */