@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600&display=swap');

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

:root {
  --green: #4ade80;
  --green-dark: #16a34a;
  --green-bg: #052e16;
  --blue: #60a5fa;
  --blue-dark: #1d4ed8;
  --blue-bg: #0c1a3a;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text-primary: #f0ede4;
  --text-secondary: #aaa;
  --text-muted: #666;
  --text-dim: #444;
}

html, body {
  background: #0a0a0a;
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── UTILITY ── */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.condensed { font-family: 'Barlow Condensed', sans-serif; }

.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.back-link:hover { color: #ccc; }

/* ── TOP BAR ── */
.top-bar {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.top-bar-team {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.hero-rule {
  height: 3px;
  width: 56px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

/* ── SECTION ── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* ── CARDS ── */
.card {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* ── TOURNAMENT GRID ── */
.tourn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tourn-card {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
  display: block;
}

.tourn-card.active { cursor: pointer; }
.tourn-card.active:hover { transform: translateY(-2px); border-color: var(--border-hover); }

.tourn-card.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.tourn-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 15px;
  color: var(--text-dim);
}

.tourn-icon { font-size: 26px; display: block; margin-bottom: 0.75rem; }

.tourn-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.tourn-dates { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.tourn-location { font-size: 12px; color: var(--text-secondary); margin-bottom: 1rem; }

.status-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.status-upcoming { background: rgba(74,222,128,0.12); color: #4ade80; }
.status-past { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ── LINKS ROW ── */
.links-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  font-weight: 500;
  color: #bbb;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.link-pill:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hover); color: #eee; }
.link-pill-icon { font-size: 16px; }

/* ── DETAIL GRID ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.full-width { grid-column: 1 / -1; }

/* ── VENUE ── */
.venue-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.venue-address { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 1rem; }

.tip-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tip-list li { font-size: 13px; color: #aaa; display: flex; gap: 8px; line-height: 1.4; }
.tip-list li::before { content: '→'; color: var(--text-dim); flex-shrink: 0; margin-top: 1px; }

.camp-note {
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(255,255,255,0.1);
  margin-top: 0.75rem;
}

/* ── SCHEDULE ── */
.schedule-day { margin-bottom: 1.25rem; }

.day-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.game-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 44px;
}

.game-opp { font-size: 14px; color: #ccc; flex: 1; }

.game-field {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: #777;
}

.game-surface { font-size: 11px; color: var(--text-muted); min-width: 36px; text-align: right; }

/* ── SIGNUP BTN ── */
.signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.signup-btn:hover { opacity: 0.85; }

/* ── CONNECT ── */
.connect-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.connect-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 0.75rem; }
.connect-notes { font-size: 13px; color: #aaa; line-height: 1.5; margin-bottom: 1rem; }

.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #ccc;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.outline-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ── CONTACTS ── */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.contact-name { font-size: 14px; font-weight: 500; color: #ddd; }
.contact-phone { font-size: 13px; color: #777; font-family: monospace; }

/* ── RECS ── */
.rec-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-row:last-child { border-bottom: none; }
.rec-name { font-size: 14px; font-weight: 500; color: #ddd; }
.rec-type { font-size: 11px; color: var(--text-dim); }
.rec-note { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .tourn-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: 1; }
  .hero-title { font-size: 44px; }
  .top-bar { padding: 1rem; }
  .page-wrap { padding: 0 1rem; }
  .hero { padding: 2rem 1rem; }
}
