/* Base styles */
:root {
    --primary-color: #0A2342;
    --accent-color: #FFD700;
    --text-color-light: #f0f0f0;
    --text-color-dark: #333;
    --background-dark: #1a1a1a;
    --border-color: #333;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    padding-top: 5rem; /* Add padding to body to prevent content from being hidden by fixed header */
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

a:hover {
    text-decoration: underline;
}

/* Header styles */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed; /* Make header sticky */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: relative; /* For absolute positioning of nav-list on mobile */
}

.site-header .logo {
    font-family: 'Georgia', serif; /* Creative font choice */
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #ffd700; /* Slightly brighter gold on hover */
    text-decoration: none;
}

.main-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 1.5rem;
}

.main-nav .nav-list a {
    color: var(--text-color-light);
    font-weight: bold;
    padding: 0.5rem 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: var(--accent-color);
    text-decoration: none;
}

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

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

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; /* Ensure it's above other content */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

/* New Auth Buttons styles */
.auth-buttons {
    display: flex; /* Default desktop display */
    gap: 10px;
    align-items: center;
}

.auth-buttons .btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap; /* Prevent buttons from wrapping text */
}

.auth-buttons .btn-register {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.auth-buttons .btn-register:hover {
    background-color: #e6c200; /* Slightly darker gold */
    color: var(--primary-color);
    transform: translateY(-2px);
}

.auth-buttons .btn-login {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.auth-buttons .btn-login:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 3rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding-right: 1.5rem;
}

.footer-section:last-child {
    padding-right: 0;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.footer-section p {
    margin-bottom: 0.8rem;
}

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

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

.footer-nav a {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding-top: 8rem; /* Adjust padding for fixed header on mobile */
    }

    .header-container {
        display: grid; /* Change to grid for mobile layout */
        grid-template-columns: auto 1fr auto; /* Hamburger | Logo (flexible center) | Empty space (to push logo to center) */
        grid-template-rows: auto auto; /* Row 1: Top bar | Row 2: Buttons */
        gap: 0; /* No explicit gap for grid cells */
        align-items: center; /* Vertically center items in their rows */
        padding: 0 1rem;
    }

    .hamburger-menu {
        display: block; /* Visible on mobile */
        grid-column: 1 / 2; /* Leftmost column */
        grid-row: 1 / 2; /* Top row */
        justify-self: start; /* Align to start (left) */
        align-self: center; /* Vertically center */
    }

    .site-header .logo {
        font-size: 2rem;
        grid-column: 2 / 3; /* Middle column */
        grid-row: 1 / 2; /* Top row */
        justify-self: center; /* Center horizontally within its cell */
        align-self: center; /* Vertically center */
    }

    .auth-buttons {
        display: flex; /* Ensure buttons are visible and flex on mobile */
        justify-content: center; /* Center buttons horizontally */
        width: 100%; /* Take full width */
        grid-column: 1 / -1; /* Span all columns */
        grid-row: 2 / 3; /* Second row, below logo */
        margin-top: 10px; /* Space from top row */
        gap: 15px; /* Spacing between buttons */
        padding-bottom: 10px; /* Padding at bottom of button area */
    }

    .main-nav .nav-list {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute; /* Absolute positioning relative to header-container */
        top: 100%; /* Position below the entire header-container */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
        z-index: 999; /* Below hamburger menu (1001) */
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Start off-screen */
    }

    .main-nav .nav-list.active {
        display: flex; /* Show when active */
        transform: translateY(0); /* Slide in */
    }

    .main-nav .nav-list li {
        margin: 0;
        text-align: center;
        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 {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .main-nav .nav-list a::after {
        display: none; /* Hide underline effect on mobile */
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

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