/* ==========================================================================
   Page-specific components
   ========================================================================== */

/* --- HERO ---
   Centered layout. The faceted brand texture is now a page-wide backdrop
   (see body::before in styles.css), so the hero itself stays transparent
   and simply lets it show through, uninterrupted, into every section below. */
.hero{
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
}
.hero-inner{ position:relative; z-index:2; max-width: 760px; margin: 0 auto; }
.hero .eyebrow{ justify-content:center; }
.hero .eyebrow::before{ display:none; }
.hero h1{ margin-bottom:.3em; font-size: clamp(2.1rem, 4.6vw, 3.7rem); white-space: normal; }
.hero h1 .hl-accent{ color: var(--primary); }
.hero-sub{ font-size: 1.15rem; max-width: 540px; margin: 0 auto; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin: 30px 0 40px; justify-content:center; }
.hero-stats{ display:flex; gap: 40px; flex-wrap:wrap; justify-content:center; }
.hero-stat b{ display:block; font-family: var(--font-display); font-size:1.7rem; }
.hero-stat span{ font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-faint); font-weight:600; }

.hero-visual{
  position: relative; z-index:2; background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-lg);
  max-width: 900px; margin: 56px auto 0;
  display:grid; grid-template-columns: repeat(3,1fr); gap: 0;
  text-align:left;
}
.hero-visual .vs-row{ display:flex; flex-direction:column; gap:10px; padding: 8px 20px; }
.hero-visual .vs-row + .vs-row{ border-left: 1px dashed var(--border); }
.vs-team{ display:flex; align-items:center; gap:8px; font-weight:700; font-family: var(--font-display); text-transform:uppercase; font-size:.92rem; }
.vs-avatar{ width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.72rem; font-weight:800; flex-shrink:0; }
.vs-mid{ font-family: var(--font-mono); font-size:.72rem; color: var(--ink-faint); font-weight:700; padding-left:2px; }

@media (max-width: 780px){
  .hero-visual{ grid-template-columns: 1fr; }
  .hero-visual .vs-row + .vs-row{ border-left:none; border-top: 1px dashed var(--border); }
}

/* --- HOW IT WORKS --- */
.steps{ counter-reset: step; }
.step-card{
  position:relative;
  display:flex; flex-direction:column; justify-content:center;
}
.step-card p{ margin-bottom: 0; }
.step-num{
  font-family: var(--font-display); font-weight:800; font-size: 2.6rem;
  color: var(--primary);
  line-height:1; margin-bottom: 14px; display:block;
}

/* --- TOURNAMENT STATUS BAR --- */
.status-bar{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background: var(--ink); color:#fff; border-radius: var(--radius-lg); padding: 26px 32px;
}
.status-bar .status-item span{ display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:#9C98B5; margin-bottom:6px; font-weight:700; font-family: var(--font-mono); }
.status-bar .status-item b{ font-family: var(--font-display); font-size:1.4rem; }
.status-progress{ flex:1; min-width:220px; }
.progress-track{ height:8px; background:#2B2842; border-radius: var(--radius-pill); overflow:hidden; margin-top:8px; }
.progress-fill{ height:100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: var(--radius-pill); }

/* --- MATCH CARD (results + bracket) --- */
.match-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); padding: 18px;
  min-width: 260px;
}
.match-card .match-meta{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.match-card .match-round{ font-family: var(--font-mono); font-size:.7rem; color: var(--ink-faint); text-transform:uppercase; letter-spacing:.06em; }
.match-team{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.match-team + .match-team{ margin-top:6px; }
.match-team.winner{ background: var(--teal-tint); }
.match-team .who{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; text-transform:uppercase; font-size:.95rem; }
.match-team .score{ font-family: var(--font-mono); font-weight:700; font-size:1rem; }
.match-team.winner .score{ color:#0A8A7C; }
.mini-avatar{ width:26px; height:26px; border-radius:7px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.65rem; font-weight:800; }

/* --- BRACKET --- */
.bracket-scroll{ overflow-x:auto; padding-bottom: 18px; -webkit-overflow-scrolling: touch; }
.bracket{ display:flex; gap: 56px; min-width: max-content; padding: 10px 4px; }
.bracket-round{ display:flex; flex-direction:column; justify-content:space-around; gap: 22px; min-width: 250px; }
.bracket-round-title{ font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color: var(--ink-faint); font-weight:700; text-align:center; margin-bottom:8px; }
.bracket-round .match-card{ position:relative; }

/* --- ROSTER --- */
.team-card .team-top{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.team-logo{
  width:52px; height:52px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.1rem;
}
.team-card h3{ margin-bottom:2px; }
.player-list{ display:flex; flex-wrap:wrap; gap:6px; margin: 14px 0; }
.player-chip{ font-size:.78rem; background: var(--bg-sunk); padding:5px 10px; border-radius: var(--radius-pill); color: var(--ink-soft); font-weight:600; }
.player-chip.captain{ background: var(--primary-tint); color: var(--primary-700); }
.team-card .team-footer{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid var(--border); font-size:.85rem; }

.filter-bar{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin-bottom: 32px; }
.filter-bar input[type="search"]{
  flex:1; min-width:220px; padding:12px 18px; border-radius: var(--radius-pill);
  border:1.5px solid var(--border-strong);
}
.filter-bar select{ padding:11px 16px; border-radius: var(--radius-pill); border:1.5px solid var(--border-strong); background:#fff; }
.filter-bar input:focus, .filter-bar select:focus{ outline:none; border-color: var(--primary); box-shadow:0 0 0 4px var(--primary-tint); }

/* --- VOTE / GAME CARDS --- */
.game-card{ overflow:hidden; padding:0; }
.game-art{ height: 150px; background-size: cover; background-position:center; position:relative; }
.game-art .leader-flag{ position:absolute; top:12px; left:12px; }
.game-card .game-body{ padding: 20px; }
.vote-bar-track{ height:8px; border-radius: var(--radius-pill); background: var(--bg-sunk); overflow:hidden; margin: 12px 0; }
.vote-bar-fill{ height:100%; background: var(--primary); border-radius: var(--radius-pill); transition: width .5s var(--ease); }
.vote-count{ font-family: var(--font-mono); font-weight:700; }
.vote-btn{ width:100%; }
.vote-btn::after{ display:none; }
.vote-btn.voted{ background: var(--teal); box-shadow: 0 6px 0 #0A8A7C; }

/* --- CHARITY --- */
.charity-card .charity-top{ display:flex; gap:14px; align-items:center; margin-bottom: 14px; }
.charity-logo{ width:56px; height:56px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-display); font-weight:800; }
.charity-card .cat{ margin-bottom:10px; }

/* --- CTA V2 (homepage closing section) — bordered card, benefit chips, live stats --- */
.cta-v2{
  position:relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align:center;
  background:#fff;
}
.cta-chips{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:22px; }
.chip{
  font-family: var(--font-mono); font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color: var(--primary-700); background: var(--primary-tint); padding:7px 14px; border-radius: var(--radius-pill);
}
.cta-v2 h2{ font-size: clamp(1.9rem,3.4vw,2.5rem); margin-bottom:14px; }
.cta-v2 p{ max-width:480px; margin:0 auto 30px; }
.cta-stats{ display:flex; justify-content:center; gap:48px; margin-top:42px; padding-top:32px; border-top:1px solid var(--border); flex-wrap:wrap; }
.cta-stat b{ display:block; font-family: var(--font-display); font-size:1.5rem; font-weight:800; }
.cta-stat span{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-faint); font-weight:700; font-family: var(--font-mono); }
@media (max-width:640px){ .cta-v2{ padding:44px 24px; } .cta-stats{ gap:28px; } }

/* --- CTA BAND (legacy, still used on other pages) --- */
.cta-band{
  background-image: url('../assets/facets-dark.svg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg); padding: 64px 40px; color:#fff; text-align:center; position:relative; overflow:hidden;
}
.cta-band::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,20,24,.15), rgba(20,20,24,.55));
  pointer-events:none;
}
.cta-band > *{ position:relative; z-index:2; }
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.82); max-width:520px; margin:0 auto 26px; }
.cta-band .btn-primary{ background:#fff; color: var(--primary-700); box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); }
.cta-band .btn-primary:hover{ background:#fff; color: var(--primary-700); transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(0,0,0,.4); }

/* --- confirmation --- */
.confirm-box{ text-align:center; max-width: 560px; margin: 0 auto; padding: 60px 20px; }
.confirm-icon{
  width:84px; height:84px; border-radius:50%; background: var(--teal-tint); color:#0A8A7C;
  display:flex; align-items:center; justify-content:center; margin: 0 auto 24px;
}
.confirm-icon svg{ width:42px; height:42px; }

/* --- dashboard note (admin/dynamic-data callout) --- */
.data-note{
  display:flex; gap:12px; align-items:flex-start; background: var(--bg-sunk); border:1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px; font-size:.85rem; color: var(--ink-soft);
}
.data-note svg{ width:20px; height:20px; flex-shrink:0; color: var(--primary); margin-top:2px; }

/* --- responsive --- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-bracket-line{ display:none; }
  .footer-grid{ gap: 28px; }
}
@media (max-width: 640px){
  .section{ padding: 56px 0; }
  .cta-band{ padding: 38px 22px; }
  .status-bar{ padding: 22px; }
}
