/* Basic Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
.site-header {
    background-color: #0A2463; /* Primary color */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Added: Make header sticky */
    width: 100%;     /* Added: Ensure full width for sticky header */
    top: 0;
    z-index: 999;    /* Added: Ensure header stays on top of other content */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.site-header .logo {
    font-size: 2.2em;
    font-weight: bold;
    color: #E3B23C; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 20px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.site-header .main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

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

.site-header .nav-list li a {
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

.site-header .nav-list li a:hover {
    color: #E3B23C; /* Secondary color on hover */
}

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

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

.site-header .auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Push buttons to the right */
}

.site-header .btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header .btn-login {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.site-header .btn-login:hover {
    background-color: #E3B23C;
    border-color: #E3B23C;
    color: #0A2463;
}

.site-header .btn-register {
    background-color: #E3B23C; /* Secondary color */
    border: 2px solid #E3B23C;
    color: #0A2463;
}

.site-header .btn-register:hover {
    background-color: #fff;
    border-color: #fff;
    color: #0A2463;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001; /* Above mobile nav */
    margin-left: 20px;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .bar:nth-child(1) { top: 0; }
.mobile-menu-toggle .bar:nth-child(2) { top: 8px; }
.mobile-menu-toggle .bar:nth-child(3) { top: 16px; }

.mobile-menu-toggle.open .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.site-header .auth-buttons.mobile-only {
    display: none; /* Hidden by default */
}

/* Footer Styles */
.site-footer {
    background-color: #0A2463; /* Primary color */
    color: #f0f0f0;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
}

.site-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.site-footer .footer-col h3 {
    color: #E3B23C; /* Secondary color */
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.site-footer .footer-col p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.site-footer .footer-col a {
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.site-footer .footer-col a:hover {
    color: #E3B23C; /* Secondary color on hover */
}

.site-footer .brand-info .logo {
    font-size: 2em;
    font-weight: bold;
    color: #E3B23C; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.site-footer .quick-links .footer-nav li {
    margin-bottom: 8px;
}

.site-footer .quick-links .footer-nav li a {
    display: block;
    padding: 2px 0;
}

.site-footer .copyright {
    margin-top: 20px;
    font-size: 0.85em;
    color: #aaa;
}

.site-footer .responsible-gambling-note {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8em;
    color: #aaa;
}

.site-footer .responsible-gambling-note a {
    color: #E3B23C;
    font-weight: bold;
}

.site-footer .responsible-gambling-note a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .site-header .nav-list {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .site-header .logo {
        font-size: 1.8em;
        padding-right: 0;
        order: 2;
        flex-grow: 1;
        text-align: center;
    }

    .site-header .main-nav {
        /* display: none; */ /* REMOVED: This was preventing animation */
        visibility: hidden; /* ADDED: Hide menu visually but allow transform */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0A2463; /* Primary color */
        padding-top: 80px; /* Space for header */
        align-items: center;
        justify-content: flex-start;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out; /* Keep transform animation */
    }

    .site-header .main-nav.open {
        transform: translateX(0);
        visibility: visible; /* ADDED: Show menu when open */
    }

    .site-header .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 0;
    }

    .site-header .nav-list li {
        margin-bottom: 20px;
    }

    .site-header .nav-list li a {
        font-size: 1.5em;
        padding: 10px 0;
        display: block;
    }

    .site-header .auth-buttons.desktop-only {
        display: none;
    }

    .site-header .auth-buttons.mobile-only {
        display: flex;
        order: 3;
        gap: 10px;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .mobile-menu-toggle {
        display: block;
        order: 1;
        margin-left: 0;
    }

    /* Adjust button size for mobile */
    .site-header .auth-buttons.mobile-only .btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    /* Footer responsive */
    .site-footer .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .footer-col {
        margin-bottom: 30px;
    }

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

    .site-footer .brand-info .logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 1.5em;
    }
    .site-header .auth-buttons.mobile-only {
        gap: 5px;
    }
    .site-header .auth-buttons.mobile-only .btn {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    .mobile-menu-toggle {
        margin-left: 0;
    }
}