/* ==========================================================
   Layout.css
   Shared layout structure: containers, header, footer, sections
   ========================================================== */

/* === Containers === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Global Header (Navigation Bar) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--secondColor);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.site-header a {
  color: var(--secondColor);
  text-decoration: none;
  font-weight: 600;
}

.site-header a:hover {
  opacity: 0.85;
}

/* Navigation List */
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header .header-actions {
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Buttons inside header (Create Event / Sign In) */
.site-header .btn {
  background: #fff;
  color: var(--thirdColor);
  
  padding: 8px 14px;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.site-header .btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* === Section Spacing (Global) === */
section {
  scroll-margin-top: 96px;
  padding: 40px 0;
}

/* === Footer === */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Footer links (optional) */
footer a {
  color: var(--text);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === Utility Layout Helpers === */
.grid {
  display: grid;
  gap: 16px;
}

.flex {
  display: flex;
  gap: 16px;
}

.text-center {
  text-align: center;
}
/* Make header <ul class="nav"> behave like the old buttons/links */
.site-header .nav {
  list-style: none;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Pill-style links for Home / Event Supplies */
.site-header .nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9999px;
  
  color: var(--secondColor);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.site-header .nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Optional “active” look via aria-current */
.site-header .nav a[aria-current="page"] {
  background: var(--secondColor);
  color: #fff;
  border-color: transparent;
}


.tournament-page-layout section {
  margin-bottom: 3rem;
}

.tournament-page-layout h2 {
  margin: 0 auto 1rem auto;
  color: var(--text);
  border-bottom: 5px solid var(--secondColor);
  padding-bottom: 0.25rem;
  width: 65%;
}
/* shared grid for all product sections */
.product-grid {
  display: grid;
  /* fixed 3-column desktop grid */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* adjust for tablets */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* stack on mobile */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


/* cards fill their cell */
.product-card { width: 100%; display: flex; flex-direction: column; }

/* sane images */
.product-image img { width: 100%; height: auto; display: block; }
