/* ============================================================
   Responsibool — Custom Design System
   Loaded after css/styles.css (which bundles Bootstrap 5.2.3)

   Color strategy:
     Brand blue (#42a4f5) — navbar, hero, CTA buttons, accents
     White / #f8f9fa — all content sections (clean, consistent)
     Gold (#f5a623) — Hall of Fame only
   ============================================================ */

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

/* ------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------ */
:root {
  --brand-blue: #42a4f5;
  --brand-navy: #0d1b2a;
  --brand-gold: #f5a623;
  --brand-surface: #f8f9fa;
  --brand-border: #e9ecef;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #212529;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
  letter-spacing: 0.03em;
}

.paragraph-font {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.75;
}

/* Small eyebrow label above headings */
.eyebrow {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.eyebrow-blue  { color: var(--brand-blue); }
.eyebrow-light { color: rgba(255, 255, 255, 0.65); }
.eyebrow-gold  { color: var(--brand-gold); }

/* ------------------------------------------------------------
   Navigation — brand blue, clean
   ------------------------------------------------------------ */
.navbar.bg-blue {
  background-color: var(--brand-blue) !important;
  box-shadow: 0 2px 16px rgba(66, 164, 245, 0.3);
}

.navbar-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff !important;
}

.nav-link.active {
  color: #ffffff !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------
   Score Bar — clean, minimal
   ------------------------------------------------------------ */
.score-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--brand-border);
}

.score-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0;
  gap: 3px;
}

.score-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #adb5bd;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.score-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--brand-navy);
  letter-spacing: 0.04em;
  line-height: 1;
}

.score-divider {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  color: #ced4da;
  line-height: 1;
}

.week-badge {
  background-color: var(--brand-blue);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Hero — brand blue, refined
   ------------------------------------------------------------ */
header.bg-blue {
  background: linear-gradient(130deg, #3098ed 0%, var(--brand-blue) 100%) !important;
  padding-top: clamp(2.5rem, 6vh, 5rem) !important;
  padding-bottom: clamp(2.5rem, 6vh, 5rem) !important;
}

header.bg-blue .display-5 {
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

header.bg-blue .lead {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6;
}

.hero-img {
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-primary {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #162840;
  border-color: #162840;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Player of the Game — editorial layout on light surface
   ------------------------------------------------------------ */
.potg-section {
  background-color: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}

.potg-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.potg-section-title .bi-star-fill {
  color: var(--brand-blue);
}

.potg-divider {
  border: none;
  border-top: 3px solid var(--brand-blue);
  opacity: 1;
}

.potg-photo-wrap {
  border-left: 4px solid var(--brand-blue);
  padding-left: 1rem;
}

.potg-player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--brand-navy);
}

.potg-achievement {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: var(--brand-gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.potg-photo {
  max-height: 300px;
  object-fit: cover;
  width: 100%;
}

.potg-section p {
  font-size: 1.0625rem;
  color: #495057;
}

/* ------------------------------------------------------------
   Testimonial Sections — brand blue gradient
   ------------------------------------------------------------ */
.py-5.bg-blue {
  background: linear-gradient(130deg, #3098ed 0%, var(--brand-blue) 100%) !important;
}

.py-5.bg-blue .fst-italic {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   Section Headings
   ------------------------------------------------------------ */
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.08em;
}

.roster-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Roster Grid
   ------------------------------------------------------------ */
.roster-section {
  background-color: var(--brand-surface);
}

/* Flip card container — white card on light background */
.card-container {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 5px;
  cursor: pointer;
}

/* Tap hint badge */
.front {
  position: relative;
}

.tap-hint {
  position: absolute;
  bottom: 14px;
  right: 12px;
  background: rgba(13, 27, 42, 0.75);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  pointer-events: none;
  letter-spacing: 0.07em;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Hide hint when flipped */
input[type='checkbox']:checked + .card-container .tap-hint {
  opacity: 0;
}

/* Desktop hover */
@media (hover: hover) {
  input[type='checkbox']:not(:checked) + .card-container:hover {
    box-shadow: 0 8px 28px rgba(66, 164, 245, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  input[type='checkbox']:not(:checked) + .card-container:hover .card-flip {
    transform: translateY(-4px);
  }

  input[type='checkbox']:checked + .card-container:hover .card-flip {
    transform: rotateY(180deg) translateY(-4px);
  }
}

/* Smooth flip transition */
.card-flip {
  transition: transform 0.7s ease, box-shadow 0.2s ease;
}

@media (max-width: 767.98px) {
  .card-container {
    margin-bottom: 0.5rem;
  }
}

/* ------------------------------------------------------------
   First-visit flip peek animation (driven by JS)
   ------------------------------------------------------------ */
@keyframes flip-peek {
  0%   { transform: rotateY(0deg); }
  25%  { transform: rotateY(20deg); }
  55%  { transform: rotateY(0deg); }
  78%  { transform: rotateY(10deg); }
  100% { transform: rotateY(0deg); }
}

.flip-peek-hint {
  animation: flip-peek 1.1s ease-in-out;
}

/* ------------------------------------------------------------
   Hall of Fame — Section Background
   ------------------------------------------------------------ */
.hof-section {
  background-color: var(--brand-navy);
}

/* Section heading on dark background */
.hof-section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ------------------------------------------------------------
   Hall of Fame — Plaque Cards
   ------------------------------------------------------------ */
.hof-plaque {
  background: linear-gradient(160deg, #0f2035 0%, #0a1520 100%);
  border: 2px solid var(--brand-gold);
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(245, 166, 35, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .hof-plaque:hover {
    box-shadow: 0 8px 48px rgba(245, 166, 35, 0.3), 0 4px 16px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
  }
}

.hof-plaque-top-bar {
  background: var(--brand-gold);
  height: 4px;
  width: 100%;
}

.hof-plaque-image-wrap {
  padding: 1.25rem 1.25rem 0;
}

.hof-plaque-img {
  border-radius: 6px;
  width: 100%;
  display: block;
  filter: sepia(15%) saturate(0.9) brightness(0.92);
}

.hof-plaque-body {
  padding: 1.25rem;
  text-align: center;
}

.hof-plaque-ornament {
  color: var(--brand-gold);
  font-size: 0.85rem;
  letter-spacing: 0.55em;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

.hof-plaque-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.hof-plaque-inducted {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.00rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 166, 35, 0.5);
  margin-bottom: 0;
}

.hof-plaque-divider {
  border: none;
  border-top: 1px solid rgba(245, 166, 35, 0.22);
  margin: 0.9rem auto;
  width: 55%;
}

.hof-plaque-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Inner-Page Hero — generic blue header for FAQ, error, etc.
   ------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(130deg, #3098ed 0%, var(--brand-blue) 100%);
  padding: 3.5rem 1rem 3rem;
}

.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  line-height: 1;
}

.page-hero-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

/* ------------------------------------------------------------
   Hall of Fame — Page Hero
   ------------------------------------------------------------ */
.hof-hero {
  background: linear-gradient(130deg, #3098ed 0%, var(--brand-blue) 100%);
  padding: 4rem 1rem 3.5rem;
  border-bottom: 3px solid var(--brand-gold);
}

.hof-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  line-height: 1;
}

.hof-trophy-icon {
  color: var(--brand-gold);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(245, 166, 35, 0.4));
}

.hof-empty {
  padding: 4rem 1rem;
  color: #adb5bd;
}

.hof-empty .bi {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.4;
}

/* ------------------------------------------------------------
   FAQ Page
   ------------------------------------------------------------ */
.accordion-button {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(66, 164, 245, 0.08);
  color: var(--brand-navy);
  box-shadow: inset 0 -1px 0 rgba(66, 164, 245, 0.2);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(66, 164, 245, 0.2);
}

.faq-contact-card {
  background: linear-gradient(130deg, #3098ed 0%, var(--brand-blue) 100%) !important;
  border-radius: 12px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  background-color: var(--brand-navy) !important;
}

/* ------------------------------------------------------------
   Utility
   ------------------------------------------------------------ */
.team-logo-small {
  max-width: 80px;
}

.text-blue {
  color: var(--brand-blue);
}
