/* Base styles */
:root {
    --primary-color: #0A2239;
    --accent-color: #FFD700;
    --text-color: #f0f0f0;
    --dark-text-color: #333;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 0; /* Will be set by JS dynamically for fixed header */
    background-color: #1a1a1a;
    color: var(--text-color);
}

/* Header - Desktop First */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column; /* Allows header-top-bar and mobile-buttons-area to stack */
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    min-height: 60px;
}

.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    white-space: nowrap;
    order: 1;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

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

.main-nav li a {
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--primary-color);
    background-color: var(--accent-color);
    border-radius: 5px;
}

.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-register {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-login {
    background: linear-gradient(45deg, #00BFFF, #1E90FF);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6);
}

.btn-download {
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.6);
}

/* Hamburger Menu - Hidden by default on desktop */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

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

/* Mobile Menu Overlay - Hidden by default on desktop */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col p,
.footer-col ul {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Stack header-top-bar and mobile-buttons-area */
    }

    .header-top-bar {
        padding: 10px 15px;
        justify-content: space-between;
        min-height: auto;
    }

    .logo {
        font-size: 22px;
        flex-grow: 1;
        text-align: center;
        order: 2; /* Logo in center */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: 1; /* Hamburger on left */
    }

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

    .desktop-nav-buttons {
        display: none;
    }

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        align-items: center;
        gap: 10px;
        background-color: var(--primary-color);
        padding: 10px 15px;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: relative; /* Relative to site-header, fixed by site-header */
        z-index: 990; /* Below hamburger menu */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS based on header height */
        left: 0;
        width: 70%;
        height: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 80px; /* Space for logo/hamburger */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease;
        z-index: 1000; /* Above overlay */
        overflow-y: auto;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li a {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999; /* Below main nav, above content */
    }

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

    body.no-scroll {
        overflow: hidden;
    }

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

    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }

    .footer-col ul {
        padding-left: 0;
    }
}
