/* ═══════════════════════════════════════════════
   THE GAME CORNER — LANDING PAGE
═══════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0e0e10;
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #141416;
  border-bottom: 2px solid rgb(255, 255, 255);
  position: relative;
  min-height: 72px;
}

.logo {
  height: 52px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.banner h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.hero-tagline {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}


/* ── Shared section label ────────────────────── */
.section-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2rem;
}

/* ── Main ────────────────────────────────────── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  flex: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.league-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: #1c1c20;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: #f0f0f0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── League cards ────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.league-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: #1c1c20;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  padding-top: 12rem;        /* ← pushes content down, exposes more image */
  text-decoration: none;
  color: #f0f0f0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 340px;
}

/* Gradient fade — dark at bottom where text sits, clear at top */
.league-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.85) 55%,
    rgba(0, 0, 0, 0.95) 100%
  );
  transition: background 0.2s ease;
}

.league-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.75) 55%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.league-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.card-icon,
.card-name,
.card-desc,
.card-link {
  position: relative;
  z-index: 1;
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 1;
  transition: opacity 0.2s;
}

.league-card:hover .card-link {
  opacity: 0.85;
}

/* ── Events section ──────────────────────────── */
.events-section {
  max-width: 860px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  width: 100%;
}

.events-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #1c1c20;
  border-bottom: 1px solid rgb(255, 255, 255);
}

.event-row:last-child {
  border-bottom: none;
}

.event-game {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  min-width: 130px;
}

.event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f0;
}

.event-detail {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.event-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.event-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f0f0f0;
}

.event-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.no-events {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: #1c1c20;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgb(255, 255, 255);
  background: #141416;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .banner {
    position: static;
    transform: none;
  }

  .banner h1 {
    font-size: 1.3rem;
    text-align: center;
  }

  .hero-tagline { font-size: 1.25rem; }
  .event-row { flex-wrap: wrap; }
  .event-game { min-width: unset; }
  .event-when { align-items: flex-start; }
}