/* =========================================
   OVCA Junior Superspiel — History Page
   Requires: style.css (globals, nav, footer, tokens)
   ========================================= */

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--green-dark);
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.page-hero::before {
  content: 'HISTORY';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 14rem);
  color: rgba(240, 180, 41, 0.04);
  pointer-events: none;
  white-space: nowrap;
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--off-white);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(245, 242, 236, 0.65);
  max-width: 520px;
}

/* ─── MAIN LAYOUT ─── */
.history-main {
  padding: 5rem 0 6rem;
}

/* ─── HISTORY SECTIONS ─── */
.history-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--grey-light);
}

.history-section:last-child {
  border-bottom: none;
}

.history-section-header {
  margin-bottom: 2rem;
}

/* ─── STORY BULLETS ─── */
.history-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 820px;
}

.history-fact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.history-fact-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.history-fact p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin: 0;
}

.history-fact p strong {
  color: var(--green-dark);
}

/* ─── NOTABLE ALUMNI ─── */
.notable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.notable-group-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.notable-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notable-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.975rem;
  line-height: 1.5;
  color: #3a3a3a;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notable-list li:last-child {
  border-bottom: none;
}

.notable-dot {
  width: 6px;
  height: 6px;
  background: rgba(240, 180, 41, 0.6);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.48rem;
}

/* ─── CHAMPIONS TABS ─── */
.champs-nav {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--grey-light);
}

.champs-tab {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey-mid);
  background: none;
  border: none;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.champs-tab:hover { color: var(--green); }

.champs-tab.active {
  color: var(--green-dark);
  border-bottom-color: var(--gold);
}

.champs-panel { display: none; }
.champs-panel.active { display: block; }

/* ─── CHAMPIONS TABLE ─── */
.champions-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grey-light);
  border-radius: 2px;
}

.champions-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-condensed);
  font-size: 0.95rem;
}

.champions-table thead tr {
  background: var(--green-dark);
}

.champions-table thead th {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.9rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.champions-table tbody tr {
  border-bottom: 1px solid var(--grey-light);
  transition: background 0.15s;
}

.champions-table tbody tr:hover {
  background: rgba(26, 92, 42, 0.04);
}

.champions-table tbody tr.cancelled {
  background: rgba(0, 0, 0, 0.02);
}

.champions-table tbody td {
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  vertical-align: middle;
}

.champions-table tbody td:first-child {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1rem;
  white-space: nowrap;
}

.cancelled-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.06);
  color: var(--grey-mid);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.champ-name { font-weight: 700; color: var(--text-dark); }
.champ-club { color: var(--grey-mid); font-size: 0.88rem; }
.champ-city { color: var(--grey-mid); font-size: 0.88rem; }

.col-divider {
  width: 2px;
  background: rgba(240, 180, 41, 0.25);
  padding: 0 !important;
}

/* ─── STAT CALLOUTS ─── */
.history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.history-stat {
  background: var(--green-dark);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.history-stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.history-stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.history-stat-label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .history-stats { grid-template-columns: repeat(2, 1fr); }
  .notable-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .history-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .champs-tab { padding: 0.75rem 1rem; font-size: 0.8rem; }
}
