/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --gold:          #f0c040;
  --dark:          #1a1e2e;
  --darker:        #0f1219;
  --green:         #2e7d32;
  --green-light:   #43a047;
  --red:           #c62828;
  --red-light:     #e53935;
  --orange:        #e65100;
  --orange-light:  #f57c00;
  --font-head:     'Oswald', sans-serif;
  --font-body:     'Open Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: #fff;
  line-height: 1.5;
}

/* ── AUTH BAR ────────────────────────────────────────────────────────────── */
.auth-bar {
  background: #0a0d16;
  padding: 0.75rem 1.5rem;
  text-align: right;
  font-size: 1rem;
  color: #888;
  border-bottom: 1px solid #1e2235;
}
.auth-bar a {
  color: var(--gold);
  text-decoration: none;
}
.auth-bar a:hover { color: #fff; }
.auth-bar strong { color: #fff; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  justify-content: center;
  background: var(--darker);
  line-height: 0;
}

.img-container {
  position: relative;
  width: 80%;
  max-width: 820px;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Patch over "Lakeview Resort" — covers y≈35.2%, full date line */
.location-patch {
  position: absolute;
  top: 39.0%;
  left: 18%;
  width: 64%;
  padding: 0.4% 0;
  background: #111a0d;
  color: #c8c8c8;
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(7px, 1vw, 13px);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Leader name patches — covers name/score, leaves "LEADERS:" / "LEADER:" */
.leader-patch {
  position: absolute;
  top: 72.0%;
  height: 2.5%;
}
.lp-golf    { left: 14.5%; width: 17%; background: #0c1209; }
.lp-pp      { left: 47.5%; width: 14%; background: #120508; }
.lp-bowling { left: 80.5%; width: 15%; background: #130806; }

/* Clickable overlays on the three sport cards */
.card-overlay {
  position: absolute;
  top: 59%;
  height: 18%;
  cursor: pointer;
  border-radius: 6px;
}
.card-golf    { left: 1%;   width: 31%; }
.card-pp      { left: 34%;  width: 31%; }
.card-bowling { left: 66%;  width: 32%; }

/* Clickable overlay on the VIEW LEADERBOARD button */
.hero-btn-overlay {
  position: absolute;
  top: 45%;
  left: 22%;
  width: 56%;
  height: 3.5%;
  cursor: pointer;
  border-radius: 4px;
}

/* ── SHARED SECTION STYLES ───────────────────────────────────────────────── */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.title-line {
  flex: 1;
  height: 2px;
  background: #444;
}

/* ── SPORT CARDS SECTION ─────────────────────────────────────────────────── */
.cards-section {
  background: #111520;
  padding: 2.5rem 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Cards */
.sport-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--darker);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.sport-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.7);
}

.card-header {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.sport-card.green  .card-header { background: var(--green); }
.sport-card.red    .card-header { background: var(--red); }
.sport-card.orange .card-header { background: var(--orange); }

.card-header h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.05em;
}

.card-format {
  font-size: 0.82rem;
  opacity: 0.9;
  letter-spacing: 0.03em;
}

.card-image {
  width: 100%;
  height: 210px;
  background: center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
/* Fallback gradient backgrounds if no image is provided */
.sport-card.green  .card-image { background-color: #1b4d1f; }
.sport-card.red    .card-image { background-color: #7b1818; }
.sport-card.orange .card-image { background-color: #6a3000; }

.card-leader {
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  color: #ccc;
}
.card-leader strong { color: #fff; }
.card-leader .score { color: var(--gold); font-weight: 700; font-size: 1rem; }

.card-status {
  padding: 0.75rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  margin-top: auto;
}
.card-status.live      { background: var(--green-light); }
.card-status.tomorrow  { background: var(--red-light); }
.card-status.completed { background: var(--orange-light); }

/* ── SCHEDULE ────────────────────────────────────────────────────────────── */
.schedule-section {
  background: var(--dark);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #222840;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--gold);
}

.sched-icon { font-size: 1.75rem; flex-shrink: 0; }

.sched-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sched-date {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.sched-event { font-size: 1rem; }
.sched-event strong { font-weight: 700; }
.sched-event .time { color: #aaa; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0a0d16;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #666;
}

.footer-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-nav a { color: #999; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-nav span { color: #444; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }

  /* Full-width hero on phones so card overlays stay accurate */
  .img-container { width: 100%; }

  .auth-bar {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
  }

  /* Safe area for iPhones with home indicator */
  .hero { padding-bottom: env(safe-area-inset-bottom); }
}

/* Tap-friendly globally */
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
