/* Base Styles */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Charcoal */
  --text-light: #f0f0f0;
  --text-dark: #333;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f8f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* Added for fixed header */
}

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

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

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: fixed; /* Made header sticky */
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

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

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

.main-nav {
  margin-left: auto; /* Pushes nav and buttons to the right */
}

.main-nav ul {
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 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: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.header-buttons {
  display: flex; /* Display buttons side-by-side */
  gap: 10px;
  margin-left: 20px; /* Space between nav and buttons */
}

.header-buttons .btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 0.9em;
}

.header-buttons .btn-register {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.header-buttons .btn-register:hover {
  background-color: #FFF;
  color: var(--secondary-color);
}

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

.header-buttons .btn-login:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

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

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #FFF;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-col p {
  margin-bottom: 10px;
  color: var(--text-light);
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    display: grid; /* Changed to grid for flexible mobile layout */
    grid-template-columns: auto 1fr auto; /* Hamburger | Logo | (empty space) */
    grid-template-rows: auto auto; /* Row1: Top elements, Row2: Buttons */
    gap: 10px 0; /* Vertical gap between rows, no horizontal gap */
    align-items: center;
    padding-bottom: 10px; /* Add some space below buttons for clarity */
  }

  .site-header .logo {
    font-size: 2em;
    grid-column: 2 / 3; /* Center the logo */
    grid-row: 1 / 2;
    justify-self: center;
    margin: 0; /* Reset desktop auto margin */
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 115px; /* Adjusted based on new fixed header height */
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 20px 0;
    text-align: center;
    grid-column: 1 / -1; /* Ensure nav can span full width if needed */
    /* grid-row property not strictly needed as it's absolutely positioned */
  }

  .main-nav.active {
    display: flex;
  }

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

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

  .hamburger-menu {
    display: block;
    grid-column: 1 / 2; /* Place hamburger on the left */
    grid-row: 1 / 2;
    justify-self: start;
  }

  .header-buttons {
    display: flex; /* Ensure buttons are visible and flexed */
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 2 / 3; /* Place buttons in the second row */
    justify-content: center; /* Center buttons horizontally */
    gap: 15px; /* Adjust gap for mobile */
    margin-left: 0; /* Reset desktop margin */
  }

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

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

  .footer-nav ul {
    padding-left: 0;
  }
}