/* Base Styles */
:root {
  --primary-color: #1A202C;
  --accent-color: #FFD700;
  --text-color: #E2E8F0;
  --light-text-color: #CBD5E0;
  --dark-bg-color: #0A101C;
}

* {
  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(--dark-bg-color);
}

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

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

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

.btn-register {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 1px solid var(--accent-color);
}

.btn-register:hover {
  background-color: #FFC107; /* Slightly darker gold */
  color: var(--primary-color);
  text-decoration: none;
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.5em;
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #FFC107;
  text-decoration: none;
}

.main-nav .nav-list {
  display: flex;
  gap: 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:hover,
.main-nav .nav-list a.active {
  color: var(--accent-color);
  text-decoration: none;
}

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

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

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

.header-actions-mobile {
    display: none; /* Hidden by default, shown in mobile menu */
}

.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: var(--accent-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

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

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 40px 20px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: var(--accent-color);
  font-size: 1.3em;
  margin-bottom: 15px;
}

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

.footer-section p a {
  color: var(--light-text-color);
}

.footer-section p a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-logo {
  font-size: 2em;
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 15px;
}

.footer-logo:hover {
  color: #FFC107;
  text-decoration: none;
}

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

.footer-nav a {
  color: var(--light-text-color);
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--accent-color);
  text-decoration: underline;
}

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

.copyright {
  font-size: 0.85em;
  color: var(--light-text-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-nav .nav-list {
    gap: 15px;
  }
  .main-nav .nav-list a {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0;
  }

  .logo {
    font-size: 2em;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden by default */
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease-in-out;
    z-index: 999;
    padding: 80px 20px;
    display: flex; /* Ensure it's a flex container for its children */
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.is-open {
    left: 0;
    opacity: 1;
    pointer-events: all;
  }

  .main-nav .nav-list {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .main-nav .nav-list a {
    font-size: 1.5em;
    padding: 10px 0;
  }

  .header-actions-desktop {
    display: none;
  }

  .header-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 250px;
  }

  .header-actions-mobile .btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1em;
  }

  .hamburger-menu {
    display: flex;
  }

  .site-header .header-container {
    justify-content: space-between;
    padding: 0 20px; /* Adjust padding for mobile header */
  }

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

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

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

  .footer-nav {
    padding: 0;
  }
}
