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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    /* padding-top will be set by JS dynamically based on header height */
}

/* Links Reset */
a {
    text-decoration: none;
    color: inherit;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Minimum height, content adapts */
    background-color: #1a1a1a; /* Solid dark background for professional iGaming look */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    padding: 10px 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px; /* Space between top and buttons/nav */
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffc107; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Centered on mobile by default */
}

.hamburger-menu {
    display: flex; /* Always visible on mobile, hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above buttons and main nav dropdown */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation */
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.empty-space {
    width: 30px; /* Balances hamburger on the right for logo centering */
    visibility: hidden;
}

.main-nav ul {
    list-style: none;
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    background-color: #222;
    padding: 10px 0;
    position: absolute;
    top: 100%; /* Position below the visible header content */
    left: 0;
    right: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below hamburger and header-buttons */
}

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

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

.main-nav a {
    color: #fff;
    font-size: 16px;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    display: block;
}

.main-nav a:hover, .main-nav a.active {
    color: #1a1a1a;
    background-color: #ffc107;
}

.header-buttons {
    display: flex;
    justify-content: center; /* Centered on mobile */
    gap: 15px;
    width: 100%;
    margin-top: 10px; /* Space from logo */
    z-index: 1000; /* Always visible, below hamburger menu, above main nav dropdown */
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    white-space: nowrap;
}

.btn-register {
    background-image: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #1a1a1a;
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 193, 7, 0.7);
}

.btn-login {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.btn-login:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Desktop Layout */
@media (min-width: 769px) {
    .site-header {
        flex-direction: row; /* Row for desktop */
        justify-content: space-between;
        align-items: center;
        padding: 10px 40px;
        min-height: 70px;
    }

    .header-top {
        padding-bottom: 0;
        width: auto;
    }

    .hamburger-menu {
        display: none; /* Hide hamburger on desktop */
    }

    .logo {
        text-align: left; /* Logo left on desktop */
        flex-grow: 0;
        margin-right: 30px;
    }

    .empty-space {
        display: none;
    }

    .main-nav {
        flex-grow: 1; /* Menu takes central space */
        margin: 0 auto; /* Center the nav */
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .main-nav li {
        margin: 0 10px;
    }

    .main-nav a {
        padding: 5px 10px;
    }

    .header-buttons {
        width: auto;
        margin-top: 0;
        justify-content: flex-end; /* Buttons right on desktop */
    }
}

/* Site Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 40px 20px;
    font-size: 14px;
    text-align: center;
}

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

.footer-col {
    flex: 1 1 250px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 15px;
}

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

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

.footer-nav a {
    color: #bbb;
    display: block;
    padding: 3px 0;
}

.footer-nav a:hover {
    color: #ffc107;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-col {
        flex-basis: 100%;
        text-align: center;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-nav ul {
        padding: 0;
    }

    .footer-nav li {
        margin-bottom: 5px;
    }
}