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

:root {
  --maize: #FFCB05;
  --blue: #00274C;
  --blue-light: #1a3a5c;
  --white: #FFF;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;
  --green: #16a34a;
  --green-light: #dcfce7;
  --green-text: #166534;
  --color-text-primary: var(--blue);
  --color-text-secondary: var(--gray-600);
  --color-background-primary: var(--white);
  --color-background-secondary: var(--gray-100);
  --color-border-tertiary: var(--gray-200);
  --color-border-secondary: var(--gray-300);
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-ui-heavy: 'Inter', system-ui, sans-serif;
  --font-hand: 'Inter', system-ui, sans-serif;
  --green-border: #22c55e;
  --green-border-soft: #86efac;

  /* Helmet SVG parts (american-football-helmet-svgrepo-com.svg #helmet / #helmet-michigan) */

  /* Main shell — large body of the helmet */
  --helmet-shell: #C2D5C2;

  /* Crown — top / back highlight panel on the shell */
  --helmet-crown: #FCEDDB;

  /* Shell shading — subtle shadow wedge on the shell */
  --helmet-shell-shadow: #231815;

  /* Top bumper — forehead rim where the facemask attaches */
  --helmet-top-bumper: #5D5F71;

  /* Forehead pad — small brow piece at the front (matches shell, not stripe) */
  --helmet-forehead-pad: var(--helmet-shell);

  /* Face mask cage — vertical bar, horizontal bars, and frame pieces */
  --helmet-cage: #E9B14E;
  --helmet-cage-bar: #F6C55C;

  /* Ear hole — outer ring and inner bolt */
  --helmet-ear-outer: #235660;
  --helmet-ear-inner: #EADF27;

  /* Outline paths — invisible detail lines (fill: none) */
  --helmet-outline: transparent;

  /* Ohio State Buckeyes */
  --osu-scarlet: #BB0000;
  --osu-gray: #666666;
  --osu-white: #FFFFFF;

  /* Oklahoma Sooners */
  --ou-crimson: #841617;
  --ou-cream: #FDF9D8;

  /* UTEP Miners */
  --utep-orange: #FF8200;
  --utep-navy: #041E42;
  --utep-silver: #B1B3B3;

  /* Western Michigan Broncos */
  --wmu-brown: #6C4023;
  --wmu-gold: #FFC425;

  /* Iowa Hawkeyes */
  --iowa-black: #000000;
  --iowa-gold: #FFCD00;

  /* Penn State Nittany Lions */
  --psu-navy: #041E42;
  --psu-white: #FFFFFF;

  /* Indiana Hoosiers */
  --iu-crimson: #990000;
  --iu-cream: #EEEDEB;

  /* Michigan State Spartans */
  --msu-green: #18453B;
  --msu-white: #FFFFFF;

  /* UCLA Bruins */
  --ucla-blue: #2774AE;
  --ucla-gold: #FFD100;

  /* Title font — page/section headings (e.g. "Upcoming Games" on index) */
  --font-size-title: 3rem;
  --font-weight-title: 700;
  --font-line-height-title: 1.1;
  --font-letter-spacing-title: -0.02em;
  --font-color-title: var(--blue);

  /* Section font — listing primary lines (e.g. "Section 27"), tab labels, section headings, offer amounts */
  --font-size-section: 1.1rem;
  --font-weight-section: 700;
  --font-line-height-section: 1.25;
  --font-letter-spacing-section: -0.02em;
  --font-color-section: var(--gray-800);

  /* Detail font — secondary listing lines (e.g. "Row 14 · Seat 8") */
  --font-size-detail: 12pt;
  --font-weight-detail: 500;
  --font-line-height-detail: 1.35;
  --font-color-detail: var(--gray-500);

  /* My listings font — badges, stat labels, support copy; slightly larger than detail */
  --font-size-my-listings: 12.5pt;
  --font-weight-my-listings: 500;
  --font-line-height-my-listings: 1.35;
  --font-letter-spacing-my-listings: 0.01em;
  --font-color-my-listings: var(--gray-500);

  /* Kickoff section font — countdown values (e.g. "04" under Days) */
  --font-size-kickoff-section: 18px;
  --font-weight-kickoff-section: 700;
  --font-line-height-kickoff-section: 1.15;
  --font-letter-spacing-kickoff-section: -0.02em;
  --font-color-kickoff-section: var(--gray-800);
}

.text-kickoff-section {
  font-size: var(--font-size-kickoff-section);
  font-weight: var(--font-weight-kickoff-section);
  line-height: var(--font-line-height-kickoff-section);
  letter-spacing: var(--font-letter-spacing-kickoff-section);
  color: var(--font-color-kickoff-section);
  font-variant-numeric: tabular-nums;
}

.text-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-title);
  line-height: var(--font-line-height-title);
  letter-spacing: var(--font-letter-spacing-title);
  color: var(--font-color-title);
}

.text-section {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-section);
  line-height: var(--font-line-height-section);
  letter-spacing: var(--font-letter-spacing-section);
  color: var(--font-color-section);
}

.text-my-listings {
  font-size: var(--font-size-my-listings);
  font-weight: var(--font-weight-my-listings);
  line-height: var(--font-line-height-my-listings);
  letter-spacing: var(--font-letter-spacing-my-listings);
  color: var(--font-color-my-listings);
}

.text-detail {
  font-size: var(--font-size-detail);
  font-weight: var(--font-weight-detail);
  line-height: var(--font-line-height-detail);
  color: var(--font-color-detail);
}

/* Michigan helmet (hero slider, left) */
.hero-slider__helmet-svg--michigan {
  --helmet-shell: var(--blue);
  --helmet-crown: var(--maize);
  --helmet-top-bumper: var(--blue);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--blue);
  --helmet-ear-inner: var(--maize);
  filter: drop-shadow(0 0 8px rgba(255, 203, 5, 0.35))
    drop-shadow(0 0 20px rgba(255, 203, 5, 0.2))
    drop-shadow(0 0 36px rgba(255, 203, 5, 0.1));
}

/* Opponent helmets (hero slider, right) */
.hero-slider__helmet-svg--western-michigan {
  --helmet-shell: var(--wmu-brown);
  --helmet-crown: var(--wmu-gold);
  --helmet-top-bumper: var(--wmu-brown);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--wmu-brown);
  --helmet-ear-inner: var(--wmu-gold);
}

.hero-slider__helmet-svg--ohio-state {
  --helmet-shell: var(--osu-scarlet);
  --helmet-crown: var(--osu-gray);
  --helmet-top-bumper: var(--osu-scarlet);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--osu-scarlet);
  --helmet-ear-inner: var(--osu-white);
}

.hero-slider__helmet-svg--oklahoma {
  --helmet-shell: var(--ou-crimson);
  --helmet-crown: var(--ou-cream);
  --helmet-top-bumper: var(--ou-crimson);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--ou-crimson);
  --helmet-ear-inner: var(--ou-cream);
}

.hero-slider__helmet-svg--utep {
  --helmet-shell: var(--utep-navy);
  --helmet-crown: var(--utep-orange);
  --helmet-top-bumper: var(--utep-navy);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--utep-navy);
  --helmet-ear-inner: var(--utep-orange);
}

.hero-slider__helmet-svg--iowa {
  --helmet-shell: var(--iowa-black);
  --helmet-crown: var(--iowa-gold);
  --helmet-top-bumper: var(--iowa-black);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--iowa-black);
  --helmet-ear-inner: var(--iowa-gold);
}

.hero-slider__helmet-svg--penn-state {
  --helmet-shell: var(--psu-navy);
  --helmet-crown: var(--psu-white);
  --helmet-top-bumper: var(--psu-navy);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--psu-navy);
  --helmet-ear-inner: var(--psu-white);
}

.hero-slider__helmet-svg--indiana {
  --helmet-shell: var(--iu-crimson);
  --helmet-crown: var(--iu-cream);
  --helmet-top-bumper: var(--iu-crimson);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--iu-crimson);
  --helmet-ear-inner: var(--iu-cream);
}

.hero-slider__helmet-svg--michigan-state {
  --helmet-shell: var(--msu-green);
  --helmet-crown: var(--msu-white);
  --helmet-top-bumper: var(--msu-green);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--msu-green);
  --helmet-ear-inner: var(--msu-white);
}

.hero-slider__helmet-svg--ucla {
  --helmet-shell: var(--ucla-blue);
  --helmet-crown: var(--ucla-gold);
  --helmet-top-bumper: var(--ucla-blue);
  --helmet-cage: #000000;
  --helmet-cage-bar: #000000;
  --helmet-ear-outer: var(--ucla-blue);
  --helmet-ear-inner: var(--ucla-gold);
}

/* Brow pad at the front of the helmet — always main shell, never stripe/accent */
[class*="hero-slider__helmet-svg--"] {
  --helmet-forehead-pad: var(--helmet-shell);
}

/* Shared banner/header component (scoped so page <section> heroes are not affected) */
#banner header {
  background: #00274C;
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 39, 76, 0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

.header-left {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  border: none;
  background: transparent;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--maize);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover span {
  background: var(--white);
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 39, 76, 0.22);
  padding: 0.45rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1002;
  overflow: hidden;
}

.header-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-dropdown a:hover {
  background: var(--gray-100);
  color: var(--blue);
}

.header-dropdown a + a {
  border-top: 1px solid var(--gray-200);
}

.logo-container {
  grid-column: 2;
  justify-self: center;
  position: static;
  left: auto;
  transform: none;
  text-align: center;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.logo img {
  display: block;
  height: 66px;
  width: auto;
  /* Ticket mark in the PNG sits slightly right of the image box */
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  #banner header {
    padding: 0.9rem 1rem;
  }

  .header-container {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
  }

  .header-left {
    grid-column: 1;
  }

  .menu-toggle {
    padding: 8px;
  }

  .menu-toggle span {
    width: 24px;
    height: 2.5px;
  }

  .logo-container {
    grid-column: 2;
    justify-self: center;
    position: static;
    transform: none;
    text-align: center;
  }

  .logo img {
    height: 52px;
    transform: translateX(-4px);
  }
}

/* Enforce consistent styling for injected banner */
#banner header {
  background: #00274C !important;
  padding: 1.2rem 2rem !important;
}

#banner .header-dropdown a {
  font-size: 0.95rem !important;
}

@media (max-width: 768px) {
  #banner header {
    padding: 0.9rem 1rem !important;
  }
}

/* Sticky footer — keep shared footer at bottom on short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Prevent flex shrink on page sections (absolute-positioned sliders collapse otherwise) */
body > * {
  flex-shrink: 0;
}

#footer {
  margin-top: auto;
  width: 100%;
}

/* Shared footer component */
#footer footer {
  background: var(--blue);
  padding: 3rem 2rem 1.5rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-link img {
  display: block;
  height: 80px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-200);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--maize);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--maize);
  color: var(--blue);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  #footer footer {
    padding: 2.5rem 1rem 1.25rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }
}
