/* Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
    /* Added for sticky header */
    padding-top: 0; /* Will be set by JS dynamically */
}

*, *::before, *::after {
    box-sizing: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header Styles */
.site-header {
    background-color: #1A1A2E;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Sticky header styles */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

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

.site-header .logo {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #E6B325;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #fff;
}

.main-nav {
    flex-grow: 1; /* Allows main-nav to take available space */
    text-align: center; /* Centers the nav items if there's enough space */
}

.main-nav .nav-list {
    display: flex;
    justify-content: center; /* Center the nav items within the nav container */
    gap: 1.5rem;
}

.main-nav .nav-list a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #E6B325;
    border-bottom: 2px solid #E6B325;
}

/* Auth Buttons Styles */
.auth-buttons {
    display: flex;
    gap: 0.8rem; /* Space between buttons */
    align-items: center;
}

.auth-buttons .btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent buttons from wrapping text */
}

.auth-buttons .btn-register {
    background-color: #E6B325;
    color: #1A1A2E;
    border: 2px solid #E6B325;
}

.auth-buttons .btn-register:hover {
    background-color: #fff;
    color: #1A1A2E;
    border-color: #fff;
}

.auth-buttons .btn-login {
    background-color: transparent;
    color: #E6B325;
    border: 2px solid #E6B325;
}

.auth-buttons .btn-login:hover {
    background-color: #E6B325;
    color: #1A1A2E;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Footer Styles */
.site-footer {
    background-color: #1A1A2E;
    color: #fff;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    color: #E6B325;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #E6B325;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        flex-wrap: wrap; /* Allow items to wrap to next line */
        justify-content: flex-start; /* Align hamburger to the left */
        padding-bottom: 1rem; /* Add space for buttons below */
    }

    .site-header .logo {
        order: 2; /* Logo comes after hamburger */
        flex-grow: 1; /* Logo takes up available space */
        text-align: center; /* Center the logo */
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1A1A2E;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-list li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .auth-buttons {
        order: 3; /* Buttons come after logo */
        width: 100%; /* Take full width to move to next line */
        display: flex; /* Keep buttons flexible */
        justify-content: center; /* Center buttons horizontally */
        margin-top: 1rem; /* Space from logo/hamburger */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu on mobile */
        order: 1; /* Hamburger is the first item */
    }

    .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);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        margin-top: 1.5rem;
    }
}