@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:         #ffffff;
  --surface:    #f5f5f5;
  --surface2:   #eeeeee;
  --border:     #e0e0e0;
  --border2:    #d0d0d0;
  --gold:       #E05A51;
  --gold-dim:   #a07830;
  --gold-glow:  rgba(212,168,67,.15);
  --red:        #c0392b;
  --blue:       #2980b9;
  --cream:      #000000;
  --text:       #333333;
  --muted:      #888888;
  --radius:     8px;
  --max:        1180px;
  --nav-h:      68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: url('../../images/background.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(9,9,11,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: .8rem; }
.nav-logo .emblem {
  width: 38px; height: 38px;
  border: 2px solid #E05A51;
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1.1rem;
  color: #E05A51;
  transform: rotate(45deg);
}
.nav-logo .emblem span { transform: rotate(-45deg); display: block; }
.nav-logo .brand { line-height: 1.2; }
.nav-logo .brand-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1rem;
  color: var(--cream); display: block;
}
.nav-logo .brand-sub { font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .85rem; font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cream); background: var(--surface2);
}
.nav-links a.active { color: #E05A51; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ── PAGE WRAPPER ── */
.page { padding-top: var(--nav-h); }

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(212,168,67,.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(192,57,43,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(41,128,185,.05) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 2rem;
  animation: fadeUp .5s ease both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #E05A51, transparent);
  max-width: 80px;
}
.hero-eyebrow span {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: #E05A51; font-weight: 500;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: .95;
  color: var(--cream);
  max-width: 1000px;
  animation: fadeUp .6s .08s ease both;
}
.hero h1 .accent {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.hero-desc {
  margin-top: 1.8rem;
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  animation: fadeUp .6s .16s ease both;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .6s .24s ease both;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-size: .88rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .2s; letter-spacing: .02em;
}
.btn-gold { background: var(--gold); color: #09090b; }
.btn-gold:hover { background: #e0b84e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,.3); }
.btn-ghost { border: 1px solid var(--border2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #E05A51; color: #E05A51; transform: translateY(-2px); }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }

/* ── REGION PILLS ── */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .8rem;
  border-radius: 99px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
}
.pill-west { background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.4); color: #e74c3c; }
.pill-east { background: rgba(41,128,185,.15); border: 1px solid rgba(41,128,185,.4); color: #5dade2; }
.pill-gold { background: rgba(224,90,81,.12); border: 1px solid rgba(224,90,81,.35); color: #E05A51; }

/* ── STATS BAND ── */
.stats-band {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat-item {
  padding: 1.8rem 3rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.stat-label { font-size: .75rem; color: var(--muted); margin-top: .35rem; letter-spacing: .08em; text-transform: uppercase; }

/* ── SECTION HEADER ── */
.section { padding: 5.5rem 2rem; }
.container { max-width: var(--max); margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .rule { margin: 1rem auto; }
.tag {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: .5rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--cream);
  line-height: 1.1;
}
.rule {
  width: 40px; height: 2px;
  background: var(--gold);
  margin: .9rem 0; border-radius: 2px;
}
.section-sub { color: var(--muted); max-width: 560px; font-size: .95rem; margin-top: .5rem; }

/* ── TOURNAMENT CARDS ── */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.t-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  background: var(--surface);
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.t-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.t-card.national::before { background: linear-gradient(90deg, var(--gold), #e8b96a); }
.t-card.west::before { background: linear-gradient(90deg, var(--red), #e74c3c); }
.t-card.east::before { background: linear-gradient(90deg, var(--blue), #5dade2); }
.t-card.round::before { background: linear-gradient(90deg, #8e44ad, #bb8fce); }
.t-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.t-icon { font-size: 2rem; margin-bottom: 1rem; }
.t-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: var(--cream);
  margin-bottom: .5rem;
}
.t-meta { font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; gap: .3rem; }
.t-meta span { display: flex; align-items: center; gap: .5rem; }
.t-status {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .3rem .9rem;
  border-radius: 99px;
  font-size: .72rem; font-weight: 500; letter-spacing: .06em;
}
.t-status.open { background: rgba(39,174,96,.15); border: 1px solid rgba(39,174,96,.4); color: #27ae60; }
.t-status.soon { background: rgba(224,90,81,.12); border: 1px solid rgba(224,90,81,.35); color: #E05A51; }
.t-status.closed { background: rgba(113,113,122,.1); border: 1px solid var(--border); color: var(--muted); }

/* ── REGION SECTIONS ── */
.region-block { margin-bottom: 4rem; }
.region-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.region-line { flex: 1; height: 1px; }
.region-line.west { background: linear-gradient(90deg, rgba(192,57,43,.5), transparent); }
.region-line.east { background: linear-gradient(90deg, rgba(41,128,185,.5), transparent); }
.region-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--cream);
}

/* ── CITY CLUBS ── */
.city-section { margin-bottom: 2.5rem; }
.city-name {
  font-size: .75rem; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem;
}
.city-name::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.clubs-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.club-card {
  flex: 1; min-width: 200px; max-width: 280px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.club-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.club-badge {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.club-badge.west { background: rgba(192,57,43,.15); }
.club-badge.east { background: rgba(41,128,185,.15); }
.club-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--cream); }
.club-teams { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.team-list { margin-top: .8rem; display: flex; flex-direction: column; gap: .4rem; }
.team-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; color: var(--muted);
  padding: .4rem .7rem;
  background: var(--surface2);
  border-radius: var(--radius);
}
.team-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.team-dot.west { background: #e74c3c; }
.team-dot.east { background: #5dade2; }

/* ── PLAYER TABLE / RANKING ── */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table thead tr {
  border-bottom: 1px solid var(--border);
}
.ranking-table th {
  text-align: left; padding: .8rem 1rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.ranking-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.ranking-table tbody tr:hover { background: var(--surface2); }
.ranking-table td { padding: .95rem 1rem; font-size: .9rem; }
.rank-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--muted); min-width: 36px; display: inline-block; text-align: center;
}
.rank-num.top3 { color: #E05A51; }
.player-name-cell { display: flex; align-items: center; gap: .9rem; }
.player-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: .75rem; color: var(--muted);
  flex-shrink: 0;
}
.player-full-name { font-weight: 500; color: var(--cream); }
.player-club { font-size: .78rem; color: var(--muted); }
.score-val { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: var(--cream); }

/* ── LEADER CARDS (About) ── */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.leader-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.leader-card:hover { border-color: #E05A51; transform: translateY(-4px); }
.leader-photo {
  width: 100%; aspect-ratio: 1;
  background: var(--surface2);
  display: grid; place-items: center;
  font-size: 2.5rem; color: var(--border2);
}
.leader-info { padding: 1.2rem; }
.leader-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; color: var(--cream);
}
.leader-role { font-size: .78rem; color: #E05A51; margin-top: .3rem; }
.leader-region { font-size: .76rem; color: var(--muted); margin-top: .2rem; }

/* ── TIMELINE (About) ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.tl-item { position: relative; margin-bottom: 2.5rem; }
.tl-dot {
  position: absolute; left: -2.35rem; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #E05A51;
  box-shadow: 0 0 8px #E05A51;
}
.tl-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700; color: #E05A51;
  line-height: 1;
}
.tl-text { color: var(--muted); font-size: .92rem; margin-top: .3rem; }

/* ── TABS ── */
.tabs { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  padding: .6rem 1.4rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
  font-family: 'Outfit', sans-serif;
}
.tab-btn:hover { border-color: var(--border2); color: var(--text); }
.tab-btn.active { background: #E05A51; color: #09090b; border-color: #E05A51; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center; margin-bottom: 2rem;
}
.filter-bar input, .filter-bar select {
  padding: .6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  outline: none;
  transition: border-color .2s;
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: #E05A51; }
.filter-bar select option { background: var(--surface2); }

/* ── RESULT TABLE ── */
.result-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
.result-header {
  padding: 1rem 1.5rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.result-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--cream); }
.result-table { width: 100%; border-collapse: collapse; }
.result-table td { padding: .75rem 1.5rem; font-size: .88rem; border-bottom: 1px solid var(--border); }
.result-table tr:last-child td { border-bottom: none; }
.result-table .medal { font-size: 1rem; }

/* ── CTA ── */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--gold-glow) 0%, transparent 70%);
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream); margin-bottom: .8rem;
}
.cta-strip p { color: var(--muted); max-width: 480px; margin: 0 auto 2rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2rem;
  background: var(--surface);
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-desc { color: var(--muted); font-size: .88rem; margin-top: .9rem; max-width: 260px; line-height: 1.6; }
footer h5 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); margin-bottom: 1rem; font-weight: 500;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
footer ul a { text-decoration: none; color: var(--muted); font-size: .88rem; transition: color .2s; }
footer ul a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max); margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(9,9,11,.97); padding: 1.5rem; gap: .25rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.4rem 1.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
}
