/* =========================================
   COMPONENTS — Neepawa Minor Hockey
   White bg · Black · Yellow · Silver
   ========================================= */

/* ---- HERO PHOTO (home page) ---- */
.hero-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: 0;
  padding: 0 !important;
  display: block;
}

.hero-photo__img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

.hero-photo__img svg,
.hero-photo__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-photo__banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.75rem) var(--space-6);
  border-top: 4px solid #f5c800;
}

.hero-photo__banner-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

/* ---- HERO (legacy — kept for inner pages if needed) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: #111111;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-24);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(245,200,0,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-rink-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(245,200,0,0.15);
  border: 1px solid rgba(245,200,0,0.4);
  border-radius: var(--radius-full);
  color: #f5c800;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-6);
}

.hero h1 em {
  font-style: normal;
  color: #f5c800;
  display: block;
}

.hero-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-puck-graphic {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: var(--text-3xl); }
  .hero-desc { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding-block: var(--space-20) var(--space-16); }
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-silver-dark);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin: var(--space-4) auto 0;
}

/* ---- ANNOUNCEMENT BANNER ---- */
.announcement-bar {
  background: #f5c800;
  color: #111;
  padding: var(--space-2) 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
}
.announcement-bar a { color: #111; font-weight: 800; text-decoration: underline; }

/* ---- NEWS CARDS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.news-card__img {
  aspect-ratio: 16/9;
  background: #e8e8e8;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.news-card:hover .news-card__img img { transform: scale(1.04); }

.news-card__body {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.news-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  flex: 1;
  color: #111;
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- SCHEDULE TABLE ---- */
.schedule-section { background: #f4f4f4; }

.division-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.div-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  background: #fff;
  transition: all var(--transition-interactive);
}
.div-tab:hover { border-color: #111; color: #111; }
.div-tab.active {
  background: #111;
  color: #f5c800;
  border-color: #111;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.schedule-table { width: 100%; font-size: var(--text-sm); }

.schedule-table thead tr { background: #111; color: #f5c800; }
.schedule-table thead th {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  font-size: var(--text-xs);
  white-space: nowrap;
}
.schedule-table tbody tr {
  background: #fff;
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition-interactive);
}
.schedule-table tbody tr:hover { background: #f9f9f9; }
.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table td { padding: var(--space-3) var(--space-4); vertical-align: middle; white-space: nowrap; }

.game-status {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.game-status--final { background: #e8e8e8; color: #444; }
.game-status--upcoming { background: #fff8cc; color: #7a6200; border: 1px solid #f5c800; }
.game-status--live { background: #ffebee; color: #c62828; }

.score-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: #111;
}

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

/* ---- TEAMS GRID ---- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #f5c800; }

.team-card__emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #111;
  border: 3px solid #f5c800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c800;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
}

.team-card__div {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver-dark);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #111;
}

.team-card__coach { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- REGISTRATION CTA SECTION ---- */
.reg-section {
  background: #111;
  position: relative;
  overflow: hidden;
}
.reg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(245,200,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.reg-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
}

.reg-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
}
.reg-title em { font-style: normal; color: #f5c800; }

.reg-desc {
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-3);
  font-size: var(--text-base);
  max-width: 52ch;
}

.reg-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.reg-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.82);
  font-size: var(--text-sm);
}

.reg-step__num {
  width: 28px;
  height: 28px;
  background: #f5c800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: #111;
  flex-shrink: 0;
}

.reg-actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end; }

.reg-price-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  min-width: 220px;
}
.reg-price-label { font-size: var(--text-xs); color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }
.reg-price-from { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: #f5c800; margin-block: var(--space-1); }
.reg-price-season { font-size: var(--text-xs); color: rgba(255,255,255,0.45); }

@media (max-width: 768px) {
  .reg-content { grid-template-columns: 1fr; }
  .reg-actions { align-items: flex-start; }
  .reg-price-box { min-width: 0; width: 100%; }
}

/* ---- SPONSORS ---- */
.sponsors-section { background: #f4f4f4; }

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

.sponsor-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive), color var(--transition-interactive);
}
.sponsor-item:hover { box-shadow: var(--shadow-md); border-color: #111; color: #111; }

/* ---- FOOTER ---- */
.site-footer { background: #0a0a0a; color: rgba(255,255,255,0.65); }

.footer-top {
  padding-block: var(--space-16);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-3);
  max-width: 36ch;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.footer-social-link:hover { background: #f5c800; color: #111; }

.footer-col__heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-col ul a:hover { color: #f5c800; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: #f5c800; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- DIVIDERS & HELPERS ---- */
.divider { width: 48px; height: 4px; background: #f5c800; border-radius: 2px; margin-block: var(--space-4); }
.divider--center { margin-inline: auto; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: #111;
  padding-block: var(--space-16) var(--space-12);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 100% at 85% 50%, rgba(245,200,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #f5c800; margin-bottom: var(--space-2); }
.page-hero__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; text-transform: uppercase; color: #fff; }
.page-hero__sub { font-size: var(--text-base); color: rgba(255,255,255,0.65); margin-top: var(--space-3); max-width: 55ch; }

/* ---- TOURNAMENT DATES ---- */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.tournament-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.tournament-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tournament-card__header {
  background: #111;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tournament-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
}
.tournament-card__div {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f5c800;
  color: #111;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.tournament-card__body { padding: var(--space-5); }

.tournament-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.tournament-detail svg { flex-shrink: 0; margin-top: 2px; color: #f5c800; }
.tournament-detail strong { color: #111; display: block; }

.tournament-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}
.tournament-status--open { background: #e8f5e9; color: #2e7d32; }
.tournament-status--upcoming { background: #fff8cc; color: #7a6200; border: 1px solid #f5c800; }
.tournament-status--closed { background: #e8e8e8; color: #555; }
