/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: auto; /* Ensure content adapts height */
    background-color: #CC0000; /* Fallback for transparency issues, actual background set on header-top/main-nav */
}

.header-top {
    background-color: #CC0000; /* Primary color for top bar */
    width: 100%;
    padding: 10px 0;
}

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

.logo {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure logo is always visible */
}

.desktop-nav-buttons {
    display: flex;
    gap: 12px;
}

.main-nav {
    background-color: #FFD700; /* Secondary color for main navigation */
    width: 100%;
    display: flex; /* Desktop default */
    flex-direction: row; /* Desktop default */
    justify-content: center;
    align-items: center;
    min-height: 50px;
    position: static; /* Desktop default */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #CC0000;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn-register {
    background-image: linear-gradient(45deg, #FFD700, #FFA500);
    color: #CC0000;
}

.btn-register:hover {
    background-image: linear-gradient(45deg, #FFA500, #FFD700);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-login {
    background-color: #CC0000;
    color: #fff;
    border: 2px solid #FFD700;
}

.btn-login:hover {
    background-color: #a30000;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-buttons-area {
    display: none; /* Hidden by default on desktop */
}

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #eee;
    padding: 40px 0 20px;
    font-size: 14px;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

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

.site-footer h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer .footer-nav a {
    display: block;
    color: #eee;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
    color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container,
    .nav-container,
    .site-footer .footer-container {
        width: 100%;
        max-width: none; /* Ensure full width on mobile */
        padding: 0 15px;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: flex; /* Visible on mobile */
        order: 1;
        margin-right: 15px; /* Space from logo */
    }

    .logo {
        order: 2;
        flex-grow: 1; /* Allows logo to take available space and center */
        text-align: center;
        margin-left: -45px; /* Compensate for hamburger menu and center logo */
        font-size: 24px;
    }

    .desktop-nav-buttons {
        display: none; /* Hidden on mobile */
    }

    .mobile-buttons-area {
        display: flex; /* Visible on mobile */
        justify-content: center;
        padding: 10px 15px;
        background-color: #CC0000; /* Same as header-top for consistency */
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Sidebar width */
        max-width: 300px; /* Max width for sidebar */
        height: 100vh;
        background-color: #333;
        flex-direction: column; /* Vertical layout for menu items */
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease;
        z-index: 1001;
        padding-top: 80px; /* Space for hamburger/logo if needed, but overlay covers it */
        box-sizing: border-box;
    }

    .main-nav.active {
        display: flex; /* Display when active */
        transform: translateX(0); /* Slide into view */
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        color: #eee;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        color: #FFD700;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .site-footer .footer-container {
        flex-direction: column;
    }

    .footer-column {
        min-width: unset;
        padding-right: 0;
    }

    .site-footer h3 {
        text-align: center;
        margin-top: 20px;
    }
    .site-footer p, .site-footer .footer-nav a {
        text-align: center;
    }
}

/* Body padding to prevent content overlap with fixed header */
body.no-scroll {
    overflow: hidden;
}
