:root {
    --primary-bg-color: #0A192F;
    --secondary-accent-color: #FFD700;
    --text-color-light: #f0f0f0;
    --text-color-dark: #333;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    padding-top: 5rem;
}

a {
    text-decoration: none;
    color: var(--secondary-accent-color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header {
    background-color: var(--primary-bg-color);
    color: var(--text-color-light);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-and-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.logo:hover {
    color: #fff;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color-light);
    font-weight: bold;
    padding: 0.5rem 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(--secondary-accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--secondary-accent-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-register {
    background-color: var(--secondary-accent-color);
    color: var(--primary-bg-color);
    border: 1px solid var(--secondary-accent-color);
}

.btn-register:hover {
    background-color: #fff;
    color: var(--primary-bg-color);
    border-color: #fff;
}

.btn-login {
    background-color: transparent;
    color: var(--secondary-accent-color);
    border: 1px solid var(--secondary-accent-color);
}

.btn-login:hover {
    background-color: var(--secondary-accent-color);
    color: var(--primary-bg-color);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-accent-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.site-footer {
    background-color: var(--primary-bg-color);
    color: var(--text-color-light);
    padding: 3rem 2rem 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-column h3 {
    color: var(--secondary-accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-column p,
.footer-column li {
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
}

.footer-column a {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary-accent-color);
}

.footer-branding .footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: block;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width:768px) {
    body {
        padding-top: 120px;
    }

    .site-header {
        padding: 1rem;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas: "hamburger logo ." "actions actions actions";
        align-items: center;
        gap: 0;
        position: relative;
        padding: 0;
        max-width: 100%;
        min-height: 60px;
    }

    .hamburger-menu {
        display: block !important;
        grid-area: hamburger;
        position: static;
        order: 1;
        z-index: 1001;
        margin-right: 15px;
        justify-self: start;
        width: 30px;
    }

    .logo {
        grid-area: logo;
        order: 2;
        text-align: center;
        justify-self: center;
        margin-left: 0;
        margin-right: 0;
        position: static;
        transform: none;
        width: auto;
        max-width: none;
    }

    .nav-and-actions-wrapper {
        display: contents;
        width: 100%;
    }

    .header-actions {
        grid-area: actions;
        order: 3;
        width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        margin-top: 10px;
        margin-bottom: 0;
        flex-wrap: nowrap;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-bg-color);
        z-index: 1002;
        visibility: hidden;
        opacity: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 80px;
        pointer-events: none;
    }

    .main-nav.active {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .main-nav a::after {
        display: none;
    }

    .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);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-branding .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}