/* ==============================================
   Featured Roster Component
   ============================================== */

@keyframes ch-frp-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.ch-featured-roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Card */
.ch-featured-player-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: var(--surface);
  background-image: var(--headshot, none);
  background-size: cover;
  background-position: center top;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Shimmer while headshot not yet applied by JS */
.ch-featured-player-card:not([style]) {
  background-image: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-raised) 50%,
    var(--surface) 75%
  );
  background-size: 1200px 100%;
  animation: ch-frp-shimmer 1.6s infinite linear;
}

/* Navy gradient overlay — matches hero/quick-links dark overlay tone */
.ch-featured-player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 17, 42, 0.10) 0%,
    rgba(0, 17, 42, 0.18) 38%,
    rgba(0, 17, 42, 0.78) 70%,
    rgba(0, 17, 42, 0.96) 100%
  );
  transition: background 0.25s ease;
  z-index: 1;
}

/* Accent bar — slides in from left at top on hover, gold to match theme accent */
.ch-featured-player-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  z-index: 3;
}

.ch-featured-player-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--primary), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.ch-featured-player-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 17, 42, 0.18) 0%,
    rgba(0, 17, 42, 0.32) 32%,
    rgba(0, 17, 42, 0.90) 65%,
    rgba(0, 17, 42, 0.98) 100%
  );
}

.ch-featured-player-card:hover::after {
  transform: scaleX(1);
}

/* Jersey number watermark — gold-tinted to match theme palette */
.ch-frp-number {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(185, 151, 91, 0.18);
  user-select: none;
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 2;
}

.ch-featured-player-card:hover .ch-frp-number {
  color: rgba(185, 151, 91, 0.08);
}

/* Bottom content */
.ch-frp-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px 14px;
  z-index: 2;
}

/* Position badge + hometown */
.ch-frp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  min-width: 0;
}

/* Gold-border badge — mirrors hero badge pattern */
.ch-frp-pos {
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 1px 5px;
  line-height: 1.5;
}

.ch-frp-detail {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 191, 168, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Player name — Bebas Neue matches h1/h2 and hero title pattern */
.ch-frp-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.ch-featured-player-card:hover .ch-frp-name {
  color: var(--primary);
}

/* Stats row */
.ch-frp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 7px;
}

.ch-frp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
}

.ch-frp-stat + .ch-frp-stat {
  border-left: 1px solid var(--border);
}

/* Stat values — Bebas Neue for numbers matches hero stat panel */
.ch-frp-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ch-frp-stat-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1;
}

/* Center highlighted stat — gold accent matches hero stat labels */
.ch-frp-stat--highlight .ch-frp-stat-val {
  font-size: 24px;
  color: var(--primary);
}

.ch-frp-stat--highlight .ch-frp-stat-lbl {
  color: var(--primary);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 980px) {
  .ch-featured-roster {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ch-frp-number {
    font-size: 72px;
  }
}

@media (max-width: 480px) {
  .ch-featured-roster {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }


  .ch-frp-number {
    font-size: 56px;
  }

  .ch-frp-name {
    font-size: 17px;
  }

  .ch-frp-stat-val {
    font-size: 17px;
  }

  .ch-frp-stat--highlight .ch-frp-stat-val {
    font-size: 20px;
  }
}
