/* ─── SLAP GOLF – Design System ─────────────────────────────────────────── */

:root {
  --green:      #1D6B4E;
  --green-dark: #154E39;
  --green-light:#2A8A64;
  --gold:       #EDD9A3;
  --gold-dark:  #C9B47A;
  --black:      #0D0D0D;
  --dark:       #121212;
  --dark2:      #1A1A1A;
  --dark3:      #242424;
  --white:      #F5F5F0;
  --gray:       #888;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --font-main:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p  { color: rgba(245,245,240,0.8); }

/* ─── NAVBAR ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237,217,163,0.1);
}
.navbar-logo img { height: 44px; }
.navbar-logo span { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold); }
.navbar-nav { display: flex; gap: 8px; align-items: center; }
.navbar-nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: rgba(245,245,240,0.7); font-size: 0.9rem; transition: all 0.2s;
}
.navbar-nav a:hover { color: var(--gold); background: rgba(237,217,163,0.08); }
.navbar-nav .btn-nav {
  background: var(--green); color: var(--gold) !important;
  font-weight: 600; padding: 8px 20px;
}
.navbar-nav .btn-nav:hover { background: var(--green-light); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: all 0.2s; text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--green); color: var(--gold);
}
.btn-primary:hover { background: var(--green-light); color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,107,78,0.4); }
.btn-gold {
  background: var(--gold); color: var(--dark);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-danger { background: #c0392b; color: white; }
.btn-danger:hover { background: #e74c3c; }
.btn-block { width: 100%; justify-content: center; }

/* ─── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--dark2);
  border: 1px solid rgba(237,217,163,0.1);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-header {
  border-bottom: 1px solid rgba(237,217,163,0.1);
  padding-bottom: 16px; margin-bottom: 20px;
}
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--gold); }

/* ─── FORMS ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.85rem; font-weight: 600;
  color: rgba(237,217,163,0.8); letter-spacing: 0.05em; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--dark3); color: var(--white);
  border: 1px solid rgba(237,217,163,0.2);
  border-radius: var(--radius-sm); font-size: 1rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,107,78,0.2);
}
.form-control option { background: var(--dark3); }
.form-text { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* ─── ALERTS ────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: 0.9rem;
}
.alert-success { background: rgba(29,107,78,0.2); border: 1px solid var(--green); color: #7ee8a2; }
.alert-danger  { background: rgba(192,57,43,0.2);  border: 1px solid #c0392b; color: #ff8a8a; }
.alert-warning { background: rgba(230,170,0,0.15); border: 1px solid #e6aa00; color: #ffd166; }
.alert-info    { background: rgba(52,152,219,0.15); border: 1px solid #3498db; color: #87ceeb; }

/* ─── TABLES ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.table th {
  padding: 12px 16px; text-align: left;
  background: var(--dark3); color: var(--gold);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
}
.table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}
.table tr:hover td { background: rgba(29,107,78,0.08); }
.table .rank { font-weight: 700; color: var(--gold); width: 40px; }
.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }
.top16 { border-left: 3px solid var(--green); }

/* ─── BADGES ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.badge-green  { background: rgba(29,107,78,0.3);  color: #7ee8a2; border: 1px solid var(--green); }
.badge-gold   { background: rgba(237,217,163,0.15); color: var(--gold); border: 1px solid var(--gold-dark); }
.badge-gray   { background: rgba(136,136,136,0.2); color: var(--gray); border: 1px solid var(--gray); }
.badge-red    { background: rgba(192,57,43,0.2);   color: #ff8a8a;   border: 1px solid #c0392b; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 540px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.page-content { padding-top: 80px; padding-bottom: 60px; }
.section { padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green-light); }
.text-gray { color: var(--gray); }
.text-sm { font-size: 0.85rem; }
.fw-bold { font-weight: 700; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0D0D0D 0%, #1A2E26 50%, #0D0D0D 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(29,107,78,0.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(237,217,163,0.1); border: 1px solid rgba(237,217,163,0.3);
  border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── STATS ─────────────────────────────────────────────────────────────── */
.stat-box {
  text-align: center; padding: 24px;
  background: rgba(29,107,78,0.1); border: 1px solid rgba(29,107,78,0.3);
  border-radius: var(--radius);
}
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--gold); font-family: var(--font-serif); }
.stat-label  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-top: 4px; }

/* ─── BRACKET ───────────────────────────────────────────────────────────── */
.bracket-round { display: flex; flex-direction: column; gap: 16px; }
.bracket-match {
  background: var(--dark2); border: 1px solid rgba(237,217,163,0.15);
  border-radius: var(--radius-sm); overflow: hidden; width: 220px;
}
.bracket-player {
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bracket-player:last-child { border-bottom: none; }
.bracket-player.winner { background: rgba(29,107,78,0.2); color: var(--gold); font-weight: 700; }
.bracket-container {
  display: flex; gap: 40px; overflow-x: auto; padding: 20px 0;
  align-items: flex-start;
}
.bracket-round-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}

/* ─── POINTS PILLS ──────────────────────────────────────────────────────── */
.pts-win  { color: #7ee8a2; font-weight: 700; }
.pts-draw { color: var(--gold); font-weight: 700; }
.pts-loss { color: #ff8a8a; font-weight: 700; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(237,217,163,0.1);
  padding: 40px 0;
  text-align: center;
}
footer .footer-logo img { height: 50px; margin-bottom: 12px; }
footer p { color: var(--gray); font-size: 0.85rem; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .navbar-nav .nav-link { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .container { padding: 0 16px; }
}
