
/* General Reset & Body */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text on dark background */
    background-color: #1a2a47; /* Slightly lighter than primary for body background */
}

a {
    text-decoration: none;
    color: #FFD700; /* Accent color for links */
}

a:hover {
    color: #e0b800; /* Slightly darker accent on hover */
}

/* Header Styles */
.site-header {
    background-color: #0A1931; /* Primary dark color */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #FFD700; /* Accent color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #e0b800;
}

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

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

.main-nav .nav-list a {
    color: #f0f0f0;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

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

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #FFD700;
}

.auth-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    background-color: #FFD700; /* Accent color */
    color: #0A1931; /* Primary dark color for text */
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.btn:hover {
    background-color: #e0b800; /* Slightly darker accent on hover */
    color: #0A1931;
}

.btn-login {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
}

.btn-login:hover {
    background-color: #FFD700;
    color: #0A1931;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Above nav list when open */
}

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

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

/* Hamburger menu active state (for X icon) */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Footer Styles */
.site-footer {
    background-color: #0A1931; /* Primary dark color */
    color: #f0f0f0;
    padding: 3rem 0 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-section h3 {
    color: #FFD700; /* Accent color for headings */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section p, .footer-section a {
    color: #ccc;
    line-height: 1.8;
}

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

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

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

.footer-nav a {
    color: #ccc;
    transition: color 0.3s ease;
}

.contact-info a {
    display: block;
    margin-bottom: 0.5rem;
}

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

.copyright {
    color: #888;
    margin: 0;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #FFD700;
    color: #0A1931;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    fill: currentColor;
    transform: rotate(180deg); /* Arrow up */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .main-nav {
        order: 3; /* Move nav to the end for layout flexibility */
        position: relative;
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        margin-left: auto; /* Push to the right */
    }

    .main-nav .nav-list {
        display: none; /* Hide nav list by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #0A1931; /* Same as header background */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .main-nav .nav-list.active {
        display: flex; /* Show nav list when active */
    }

    .main-nav .nav-list li {
        margin: 0;
        text-align: center;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

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

    .auth-actions {
        display: none; /* Hide direct login/register buttons on small screens, rely on menu item */
    }

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

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem; /* Row gap, column gap */
    }

    .footer-nav li {
        margin-bottom: 0;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
