:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-color-light: #F0F0F0;
    --text-color-dark: #333;
    --background-dark: #0F0F0F;
    --background-light: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--background-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-family: 'Impact', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #FFEA00;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons .btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.auth-buttons .btn-register {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.auth-buttons .btn-register:hover {
    background-color: #FFEA00;
    border-color: #FFEA00;
    transform: translateY(-2px);
}

.auth-buttons .btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.auth-buttons .btn-login:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop specific order and positioning for auth-buttons and main-nav */
@media (min-width: 769px) {
    .site-header .container {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .site-header .logo {
        order: 1;
        margin-right: 30px;
        width: auto;
        text-align: left;
        margin-bottom: 0;
    }
    
    .site-header .main-nav {
        order: 2;
        flex: 1;
        display: block;
        width: auto;
        max-height: none;
        overflow: visible;
        position: static;
    }
    
    .site-header .main-nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background-color: transparent;
        border-top: none;
        width: auto;
    }
    
    .site-header .auth-buttons {
        order: 3;
        margin-left: auto;
        margin-right: 0;
        margin-bottom: 0;
        display: flex;
        width: auto;
        justify-content: flex-end;
    }
    
    .site-header .hamburger {
        display: none !important;
    }
}

.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 3px solid var(--primary-color);
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col p,
.footer-col ul {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-logo {
    font-size: 28px;
    margin-bottom: 15px;
    display: inline-block;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        order: 1;
    }

    .hamburger {
        display: flex !important;
        position: absolute;
        left: 20px;
        top: 25px;
        z-index: 1100;
        order: 2;
    }

    .site-header .auth-buttons {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
        order: 3;
    }

    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        flex-basis: 100%;
        order: 4;
    }

    .main-nav.nav-open {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        background-color: var(--secondary-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .main-nav li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    .main-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-cols {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        margin-top: 20px;
    }

    .footer-logo {
        margin-bottom: 10px;
    }
}