
:root {
    --primary-bg: #1A202C;
    --secondary-accent: #FFD700;
    --text-color: #E0E0E0;
    --light-text: #fff;
    --dark-text: #1A202C;
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: var(--text-color);
    line-height: 1.6;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

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

.logo {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--secondary-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transition: color 0.3s ease;
}

.logo:hover {
    color: #FFF8DC;
}

.main-nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.nav-link:hover {
    color: var(--secondary-accent);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(0);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--dark-text); /* Ensure dark text for bright buttons */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

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

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

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

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

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

.header-buttons-mobile {
    display: none; /* Hidden by default on desktop */
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 999; /* Below main nav but above content */
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-accent);
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

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

/* Site Footer */
.site-footer {
    background-color: var(--primary-bg);
    color: var(--text-color);
    padding: 40px 20px;
    font-size: 0.95em;
    border-top: 5px solid var(--secondary-accent);
    margin-top: 50px;
}

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

.footer-column {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.footer-column h3 {
    color: var(--secondary-accent);
    font-size: 1.4em;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.footer-column p, .footer-column ul {
    margin: 0;
    padding: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 20px;
    font-size: 0.85em;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: 0 15px;
        min-height: auto;
    }

    .header-top {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .hamburger-menu {
        display: block;
        order: 1; /* Place hamburger first */
        margin-right: auto; /* Push logo to center */
    }

    .logo {
        order: 2; /* Place logo second */
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center the logo */
        margin-left: -40px; /* Adjust for hamburger width to truly center */
        font-size: 1.8em;
    }

    .desktop-buttons {
        display: none; /* Hide desktop buttons */
    }

    .header-buttons-mobile {
        display: flex; /* Show mobile buttons */
        order: 3; /* Place buttons below top header */
        width: 100%;
        padding: 10px 0;
        justify-content: center;
        gap: 10px;
        box-shadow: none; /* Remove shadow to blend with header */
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
        border-radius: 20px;
    }

    .main-nav {
        display: none; /* Hide main nav by default */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(26, 32, 44, 0.98); /* Dark background for menu */
        justify-content: center;
        align-items: center;
        z-index: 1001; /* Above buttons */
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }

    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nav-link {
        font-size: 1.4em;
        padding: 12px 20px;
        color: var(--light-text);
    }

    .nav-link:hover::before {
        transform: translateX(0);
        height: 5px;
    }

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

    .footer-column {
        min-width: unset;
        width: 90%;
        text-align: center;
    }

    .footer-column h3 {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav li {
        margin: 0;
    }

    .footer-nav a {
        padding: 5px 10px;
        border-radius: 5px;
        background-color: rgba(255, 215, 0, 0.1);
    }
}
