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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

/* General Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent buttons from wrapping text */
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-register {
    background-color: #ff5722; /* Vibrant orange */
    color: #fff;
    border: 2px solid #ff5722;
}

.btn-register:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    color: #fff;
}

.btn-login {
    background-color: #2196f3; /* Vibrant blue */
    color: #fff;
    border: 2px solid #2196f3;
}

.btn-login:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

/* Header Styles */
.site-header {
    background-color: #000; 
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    padding: 15px 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem; /* Added gap for spacing between header elements */
}

.site-header .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffc107; 
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #fff;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    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: #007bff; 
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: #007bff; 
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a; 
    color: #ccc;
    padding: 3rem 0 1rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

.footer-column h3 {
    color: #ffc107; 
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-column p {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #007bff; 
    transition: color 0.3s ease;
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: block;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    color: #888;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        flex-wrap: wrap; /* Allow items to wrap to the next line */
    }

    .site-header .logo {
        order: 1; /* Keep logo on the first line, left */
    }

    .hamburger-menu {
        order: 1; /* Keep hamburger on the first line, right */
        margin-left: auto; /* Push to the right to create space-between with logo */
    }

    .auth-buttons {
        order: 2; /* Display below logo/hamburger */
        width: 100%; /* Take full width */
        justify-content: center; /* Center the buttons within their container */
        margin-top: 1rem;
        margin-bottom: 1rem;
        display: flex; /* Ensure it's a flex container for its own buttons */
        gap: 1rem; /* Gap between register and login buttons */
    }

    .main-nav {
        order: 3; /* Display below auth buttons */
        width: 100%; /* Take full width */
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        /* width: 100%; already set by order 3 rule */
        background-color: #000;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        display: flex; 
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .main-nav a::after {
        display: none; 
    }

    .hamburger-menu {
        display: block; 
    }

    .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-logo {
        margin-left: auto;
        margin-right: auto;
    }
}