/* ===== pages.css — Hero & page-specific blocks ===== */

/* ---- Hero (home) ---- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 75% 20%, rgba(232, 183, 72, .14), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(201, 150, 47, .03) 38px 39px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin: 1rem 0 1.2rem; }
.hero .lead { max-width: 540px; margin-bottom: 1.8rem; }
.hero .btn-row { margin-bottom: 2rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.hero-stats .num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--sepia-100);
  line-height: 1;
}
.hero-stats .label { font-size: .78rem; color: var(--text-mute); margin-top: .3rem; }

/* Hero visual — CSS trophy / pitch */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 150, 47, .25), transparent 55%),
    linear-gradient(180deg, var(--bg-700), var(--bg-900));
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.hero-visual .pitch-lines {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(231, 222, 205, .12);
  border-radius: 12px;
}
.hero-visual .pitch-lines::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: rgba(231, 222, 205, .12);
}
.hero-visual .pitch-lines::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 96px; height: 96px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(231, 222, 205, .12);
  border-radius: 50%;
}
.hero-visual .glyph { position: relative; width: 56%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.hero-visual .badge-float {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(18, 14, 9, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  backdrop-filter: blur(6px);
}
.hero-visual .badge-float strong { display: block; font-family: var(--ff-display); color: var(--white); }
.hero-visual .badge-float span { font-size: .78rem; color: var(--accent); }

/* ---- Page header (inner pages) ---- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 320px at 85% 0%, rgba(201, 150, 47, .12), transparent 60%);
  pointer-events: none;
}
.page-hero .inner { position: relative; max-width: 760px; }
.page-hero h1 { margin: 1rem 0 1rem; }
.page-hero p { font-size: 1.12rem; color: var(--sepia-100); }
.breadcrumb {
  display: flex;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-mute);
  margin-bottom: .4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb span { color: var(--line); }

/* ---- Feature strip / banner ---- */
.cta-band {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(201, 150, 47, .16), transparent 60%),
    linear-gradient(150deg, var(--bg-700), var(--bg-800));
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { margin-bottom: .8rem; }
.cta-band p { max-width: 560px; margin: 0 auto 1.6rem; color: var(--sepia-100); }
.cta-band .btn-row { justify-content: center; }

/* ---- Profile (tournament) specifics ---- */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.profile-visual {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--bg-700), var(--bg-900));
}
.profile-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.fact-grid .f {
  background: var(--panel);
  padding: 1.1rem 1.3rem;
}
.fact-grid .f .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }
.fact-grid .f .v { font-family: var(--ff-display); font-weight: 700; color: var(--sepia-100); font-size: 1.15rem; margin-top: .25rem; }

/* ---- TOC for longread ---- */
.longread {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  background: rgba(255, 255, 255, .015);
}
.toc h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; margin-bottom: .55rem; }
.toc li a { color: var(--text-soft); font-size: .9rem; display: flex; gap: .5rem; }
.toc li a::before { content: counter(t, decimal-leading-zero); color: var(--text-faint); font-family: var(--ff-display); }
.toc li a:hover { color: var(--accent-bright); }

/* ---- Photo backgrounds for heroes ---- */
.hero--photo,
.page-hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--photo::before {
  background:
    linear-gradient(110deg, rgba(16,17,12,.94) 0%, rgba(16,17,12,.78) 48%, rgba(16,17,12,.55) 100%),
    radial-gradient(700px 400px at 75% 20%, rgba(232, 183, 72, .14), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(201, 150, 47, .03) 38px 39px);
}
.page-hero--photo::before {
  background:
    linear-gradient(180deg, rgba(22,17,12,.88) 0%, rgba(22,17,12,.80) 60%, rgba(22,17,12,.92) 100%),
    radial-gradient(600px 320px at 85% 0%, rgba(201, 150, 47, .14), transparent 60%);
}

/* ---- Editorial band image (full-width inside container) ---- */
.media-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 8;
  box-shadow: var(--shadow);
}
.media-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: .9;
}
.media-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,17,12,.15) 0%, rgba(16,17,12,.55) 100%);
  pointer-events: none;
}
@media (max-width: 640px) { .media-band { aspect-ratio: 16 / 9; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; aspect-ratio: 5 / 4; }
  .profile-hero { grid-template-columns: 1fr; }
  .longread { grid-template-columns: 1fr; }
  .toc { position: static; }
}
