/* =====================================================
   nextlevel.css v2 — FULL REDESIGN
   Matches the site's existing hero style
   ===================================================== */

/* ─────────────────────────────────────────────────────
   HERO  — upgraded to match site-wide premium hero style
   ───────────────────────────────────────────────────── */
.nl-hero {
  background:
    radial-gradient(ellipse 80% 120% at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 65%),
    linear-gradient(to right, #070d18 0%, #0d1e4a 55%, #1e3a8a 100%);
  padding: 3.5rem 0 6rem;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.nl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.nl-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.nl-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nl-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #93c5fd;
  border-radius: 2px;
  flex-shrink: 0;
}

.nl-hero-title {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.nl-hero-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, #C8D4E0, transparent);
  border-radius: 2px;
  margin-top: 1rem;
}
.nl-hero-title em {
  font-style: normal;
  color: #60A5FA;
}

.nl-hero-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: 0.2em;
  margin-top: 0;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────
   FLOATING STATS CARD — matches schedule records-card
   ───────────────────────────────────────────────────── */
.nl-stats-section {
  max-width: 1400px;
  margin: -3rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.nl-stats-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.nl-stat-item {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}
.nl-stat-item:last-child {
  border-right: none;
}
.nl-stat-item .nl-score-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  display: block;
}
.nl-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  display: block;
}

/* Scoreboard — compact inline strip below the title */
.nl-scoreboard {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  width: fit-content;
}

.nl-score-cell {
  padding: 0.85rem 2rem;
  text-align: center;
  position: relative;
}
.nl-score-cell + .nl-score-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.nl-score-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  margin-bottom: 0.2rem;
}
.nl-score-number.gold { color: #C8D4E0; }

.nl-score-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ─────────────────────────────────────────────────────
   PAGE BODY LAYOUT — unified single bg (#F1F5F9)
   ───────────────────────────────────────────────────── */

/* Sticky filter tab bar — matches site's nav tone */
.nl-filter-bar-wrap {
  background: #fff;
  border-bottom: 2px solid #CBD5E1;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nl-filter-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.nl-tab {
  padding: 1rem 1.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.nl-tab:hover { color: #1E293B; }
.nl-tab.active {
  color: #1E293B;
  border-bottom-color: #2563EB;
}
.nl-tab-badge {
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  min-width: 22px;
  text-align: center;
  border: 1px solid #CBD5E1;
}
.nl-tab.active .nl-tab-badge {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

/* ─────────────────────────────────────────────────────
   PRO SECTION — same page bg, dark cards pop naturally
   ───────────────────────────────────────────────────── */
#section-pro {
  background: #F1F5F9;
  padding: 4rem 0;
}
.nl-pro-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section description subtitle — matches site's text-muted pattern */
.nl-section-desc {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0.2rem 0 0;
  letter-spacing: 0.02em;
}

.nl-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #CBD5E1;
}
.nl-section-label-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.icon-pro { background: #1E293B; color: #C8D4E0; }
.icon-college { background: #2563EB; color: #fff; }

.nl-section-label-text {
  flex: 1;
}
.nl-section-label-text h2 {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1E293B;
  margin: 0 0 0.1rem;
}
.nl-section-label-text p {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
  letter-spacing: 0.03em;
}
.nl-section-label-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 100px;
  padding: 0.2rem 0.9rem;
  letter-spacing: 0.08em;
}

/* Pro sub-group */
.nl-pro-sub {
  margin-bottom: 2.5rem;
}
.nl-pro-sub-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #64748B;
}
.nl-pro-sub-label.lbl-mlb   { color: #1E293B; }
.nl-pro-sub-label.lbl-milb  { color: #2563EB; }
.nl-pro-sub-label.lbl-ind   { color: #475569; }
.nl-pro-sub-label.lbl-other { color: #64748B; }
.nl-pro-sub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #CBD5E1;
}

/* ── MLB SPOTLIGHT CARD ─── big single horizontal card */
.nl-mlb-spotlight {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  background: #1E293B;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  margin-bottom: 1rem;
  position: relative;
}
.nl-mlb-spotlight::before {
  content: 'MLB';
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #C8D4E0;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
}
.nl-mlb-hat-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.nl-mlb-hat {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.nl-mlb-hat-placeholder {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(245,158,11,0.2);
}
.nl-mlb-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nl-mlb-year {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #C8D4E0;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.nl-mlb-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}
.nl-mlb-divider {
  width: 40px;
  height: 3px;
  background: #C8D4E0;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.nl-mlb-team {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nl-mlb-team i { font-size: 0.85rem; color: #C8D4E0; }

/* ── PORTRAIT CARDS for MiLB / IND ── */
.nl-portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.nl-portrait-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: default;
}
.nl-portrait-card.visible { opacity: 1; transform: translateY(0); }
.nl-portrait-card:hover {
  border-color: rgba(96,165,250,0.3);
  box-shadow: 0 8px 32px rgba(37,99,235,0.15);
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.nl-portrait-card.card-ind:hover {
  border-color: rgba(148,163,184,0.3);
  box-shadow: 0 8px 32px rgba(148,163,184,0.1);
}

/* Hat area */
.nl-portrait-hat-area {
  background: rgba(255,255,255,0.03);
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  min-height: 160px;
}
.nl-portrait-card.card-ind .nl-portrait-hat-area {
  background: rgba(255,255,255,0.02);
}
.nl-portrait-hat {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
}
.nl-portrait-hat-placeholder {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.08);
}
.nl-portrait-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.badge-milb-dark {
  background: rgba(37,99,235,0.25);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.35);
}
.badge-ind-dark {
  background: rgba(100,116,139,0.25);
  color: #cbd5e1;
  border: 1px solid rgba(100,116,139,0.35);
}

/* Info area */
.nl-portrait-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.nl-portrait-year {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.nl-portrait-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.nl-portrait-team {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: clip;
}

/* ─────────────────────────────────────────────────────
   COLLEGE SECTION — same page bg, continuous flow
   ───────────────────────────────────────────────────── */
#section-college {
  background: #F1F5F9;
  padding: 4rem 0;
  border-top: 2px solid #CBD5E1;
}
.nl-college-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section label light version — same as pro now, both use same light-mode styles */
#section-college .nl-section-label-text h2 { color: #1E293B; }
#section-college .nl-section-label-text p  { color: #64748B; }
#section-college .nl-section-label-count {
  color: #475569;
  background: #fff;
  border-color: #CBD5E1;
}

/* ── College controls bar (sort + search) ── */
.nl-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.nl-controls-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.nl-controls-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  white-space: nowrap;
}
/* Segmented pill group */
.nl-sort-group {
  display: flex;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  overflow: hidden;
  gap: 0;
}
.nl-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
  background: transparent;
  border: none;
  border-right: 1px solid #CBD5E1;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nl-sort-pill:last-child { border-right: none; }
.nl-sort-pill i { font-size: 0.65rem; opacity: 0.7; }
.nl-sort-pill:hover {
  background: #E2E8F0;
  color: #1E293B;
}
.nl-sort-pill.active {
  background: #2563EB;
  color: #fff;
}
.nl-sort-pill.active i { opacity: 1; }

/* Search input */
.nl-controls-right { flex-shrink: 0; }
.nl-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nl-search-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 0.75rem;
  color: #94A3B8;
  pointer-events: none;
}
.nl-search-input {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.45rem 0.75rem 0.45rem 2.1rem;
  font-size: 0.8rem;
  color: #1E293B;
  width: 220px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.nl-search-input::placeholder { color: #94A3B8; }
.nl-search-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #fff;
}

/* Dense college grid */
.nl-college-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.5rem;
}

/* College player card — 2-row layout */
.nl-college-card {
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem 0.85rem 1.25rem;
  border-left: 3px solid #2563EB;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  opacity: 0;
  transform: translateY(10px);
}
.nl-college-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.nl-college-card:hover {
  border-left-color: #C8D4E0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transform: translateX(3px);
}

/* Top row: name + year side by side */
.nl-cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.nl-cc-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.nl-cc-year {
  flex-shrink: 0;
}
.nl-cc-year-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Bottom row: school */
.nl-cc-school {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.nl-cc-school i { font-size: 0.65rem; flex-shrink: 0; color: #2563eb; opacity: 0.45; }
.nl-cc-school-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────
   LOADING SKELETONS
   ───────────────────────────────────────────────────── */
@keyframes nl-shimmer {
  from { background-position: -800px 0; }
  to   { background-position:  800px 0; }
}
/* Pro skeleton (dark bg) */
.nl-skel {
  background: linear-gradient(90deg, #1E293B 25%, #263549 50%, #1E293B 75%);
  background-size: 800px 100%;
  animation: nl-shimmer 1.6s infinite;
  border-radius: 8px;
}
/* College skeleton (light bg) */
.nl-skel-light {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 800px 100%;
  animation: nl-shimmer 1.6s infinite;
  border-radius: 8px;
}
.nl-skel-spotlight { height: 220px; border-radius: 12px; margin-bottom: 1rem; }
.nl-skel-portrait  { height: 240px; border-radius: 12px; }
.nl-skel-card      { height: 52px; border-radius: 8px; }

/* ─────────────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────────────── */
.nl-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: #94a3b8;
}
.nl-empty.light { color: #94a3b8; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nl-hero-content { padding: 0 1.5rem; }
  .nl-hero-logo    { display: none; }
  .nl-scoreboard   { flex-wrap: wrap; }
  .nl-score-cell   { min-width: 130px; padding: 1.25rem 1.75rem; }

  .nl-mlb-spotlight { grid-template-columns: 1fr; }
  .nl-mlb-hat-panel { border-right: none; border-bottom: 1px solid rgba(245,158,11,0.1); padding: 2rem; }
  .nl-mlb-hat       { width: 120px; height: 120px; }

  .nl-portrait-grid { grid-template-columns: repeat(2, 1fr); }

  .nl-college-grid { grid-template-columns: 1fr; }

  .nl-sort-bar { display: none; }
  .nl-college-card {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.85rem 1rem 0.85rem 1.25rem;
  }
  .nl-cc-year { text-align: left; }
}

@media (max-width: 600px) {
  .nl-hero-title  { font-size: clamp(2.8rem, 15vw, 4rem); }
  .nl-score-cell  { min-width: 100px; padding: 1rem 1.25rem; }
  .nl-score-number { font-size: clamp(2rem, 8vw, 3rem); }
  .nl-portrait-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .nl-pro-inner, .nl-college-inner { padding: 0 1rem; }
  #section-pro, #section-college { padding: 3rem 0; }
}

@media (max-width: 380px) {
  .nl-portrait-grid { grid-template-columns: 1fr; }
}
