/*
Theme Name: SDGA Theme
Author: Kerry Wehner
Version: 1 (dev)
Description: Custom theme for 44i digital.
*/

/* =========================
   BASE / RESET
========================= */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2937;

  /* ✅ FULL SITE BACKGROUND */
  background: url('/wp-content/themes/sdga-theme/assets/images/golf.jpeg') no-repeat fixed center;
  background-size: cover;
}

/* dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 40, 30, 0.85);
  z-index: -1;
}

/* =========================
   HERO
========================= */
.hero {
  height: 120px; 
  max-width: 900px; 
  margin: 30px auto 10px; 
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(6, 78, 59, 0.5),
    rgba(2, 44, 34, 0.5)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: none;
}

.hero h1 {
  color: #e6c36a;
  font-size: 26px;
  font-weight: 600;
}

/* =========================
   GRID (Homepage)
========================= */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

/* =========================
   CARDS (Homepage sections)
========================= */
.home-card {
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  background: #2f2f2f;
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  text-transform: uppercase;
}

/* =========================
   TOURNAMENT ROWS
========================= */
.event-row {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.event-status {
  width: 70px;
  font-size: 11px;
  text-align: center;
  padding: 10px;
  color: white;
  font-weight: bold;
}

.event-status.upcoming {
  background: #7ea33c;
}

.event-status.final {
  background: #6b7280;
}

.event-info {
  padding: 10px 14px;
  flex: 1;
}

.event-info a {
  color: #064e3b;
  text-decoration: none;
  font-weight: 600;
}

.event-info a:hover {
  text-decoration: underline;
}

.event-row:hover {
  background: #e5e7eb;
  cursor: pointer;
}

/* =========================
   CTA ROW
========================= */
.cta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
}

.cta {
  background: #5f7687;
  color: white;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cta:hover {
  background: #475e6c;
}

/* =========================
   LEADERBOARD (MAIN PAGE)
========================= */
.leaderboard {
  max-width: 750px;
  margin: 60px auto;
  padding: 20px;
}

.leaderboard h1 {
  text-align: center;
  color: #e6c36a;
  margin-bottom: 25px;
}

/* FILTER */
.leaderboard form {
  text-align: center;
  margin-bottom: 25px;
}

.leaderboard select,
.leaderboard button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
}

.leaderboard button {
  background: #1d3527;
  color: white;
  cursor: pointer;
}

.leaderboard button:hover {
  background: #132a36;
}

/* CARD */
.leaderboard-card {
  background: #f9fafb;
  border-radius: 10px;
  overflow: hidden;
}

/* ROWS */
.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.leaderboard-row:nth-child(even) {
  background: #f3f4f6;
}

/* WINNER */
.leaderboard-row.winner {
  background: #d1fae5;
  border-left: 5px solid #10b981;
}

/* NAME */
.leaderboard-name {
  font-weight: 600;
}

.leaderboard-name a {
  text-decoration: none;
  color: inherit;
}

.leaderboard-name a:hover {
  text-decoration: underline;
}

/* SCORE */
.leaderboard-score {
  font-weight: bold;
  color: #d4a017;
}

/* SCORE GRID */
.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 40px);
  gap: 6px;
  text-align: center;
  font-family: monospace;
}

.score-grid span {
  background: #e5e7eb;
  padding: 4px 6px;
  border-radius: 4px;
}

.score-grid .total {
  background: #f59e0b;
  font-weight: bold;
}

/* WINNER BOX */
.winner-box {
  margin-top: 30px;
  background: #1d3527;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* RESET LINK */
.reset-link {
  top: 90px;
  left: 20px;
  color: #e6c36a;
  text-decoration: none;
}

.reset-link:hover {
  text-decoration: underline;
}

/* =========================
   LEADERBOARD PREVIEW
========================= */
.leaderboard-preview {
  padding: 20px;
}

.leaderboard-preview .section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.leaderboard-preview h3 {
  color: white;
  text-transform: uppercase;
}

.leaderboard-preview a {
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
}

.leaderboard-preview .leaderboard-card {
  background: #f3f4f6;
  border-radius: 8px;
}

.leaderboard-preview .leaderboard-row {
  padding: 10px 14px;
}

.leaderboard-preview .leaderboard-score {
  color: #d4a017;
}

.card-header a {
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
}

.card-header a:hover {
  text-decoration: underline;
}

.leaderboard-nav a {
  color: #e6c36a;
  text-decoration: none;
  font-size: 14px;
}

.leaderboard-nav a:hover {
  text-decoration: underline;
}

.leaderboard-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  color: #e6c36a;
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover {
  text-decoration: underline;
}