/* Base Styles */
:root {
    --primary-color: #C0392B;
    --secondary-color: #2C3E50;
    --text-color: #ecf0f1;
    --bg-color: #34495e;
    --light-gray: #bdc3c7;
    --dark-gray: #2c3e50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

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

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-family: 'Georgia', serif; /* Creative font for brand feel */
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #e74c3c; /* Slightly brighter red on hover */
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 25px;
}

.main-nav .nav-list a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out;
}

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

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--dark-gray);
    text-decoration: none;
}

.btn-register {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--dark-gray);
}

.btn-register:hover {
    background-color: #e74c3c; /* A slightly different red */
    border-color: #e74c3c;
    color: var(--dark-gray);
    text-decoration: none;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.footer-col p {
    font-size: 0.95em;
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-logo {
    font-family: 'Georgia', serif;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 15px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-nav .nav-list li {
        margin-left: 18px;
    }
    .btn {
        padding: 8px 15px;
    }
    .site-header .logo {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .site-header .logo {
        order: 1;
    }
    .header-actions {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--dark-gray);
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
        order: 4; /* Place it below other elements */
    }
    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }
    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
    }
    .main-nav .nav-list li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }
    .main-nav .nav-list a {
        display: block;
        padding: 15px 10px;
        text-align: center;
        width: 100%;
    }
    .main-nav .nav-list a::after {
        display: none; /* Hide underline for mobile */
    }
    .hamburger-menu {
        display: flex;
        order: 3;
        margin-left: 15px; /* Space between actions and hamburger */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .footer-col h3 {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-col p, .footer-col a {
        font-size: 1em;
    }
    .footer-nav ul {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .header-actions {
        display: none; /* Hide buttons on very small screens, or stack them */
    }
    .site-header .logo {
        font-size: 1.6em;
    }
    .site-header .container {
        padding: 0 15px;
    }
    .main-nav {
        top: 60px; /* Adjust for smaller header height */
    }
}
