/* home.css — Homepage-specific overrides scoped to body.page-home */

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

/* ── Header: dark navbar ─────────────────────────────────────────────── */
body.page-home header {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Navbar inner row */
.vf-navbar-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  gap: 20px;
}

/* Brand: T logo + "Vols Fast" text */
.vf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.vf-brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.vf-brand-name {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links */
.vf-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.vf-nav-link {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.vf-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.vf-nav-link.vf-nav-active {
  color: #fff;
  background: rgba(255,130,0,0.15);
  border-bottom: 2px solid #FF8200;
  border-radius: 5px 5px 0 0;
}

/* Right: Listen Live button + theme toggle */
.vf-navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.vf-listen-btn {
  background: #FF8200;
  border: none;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: filter 0.15s, transform 0.1s;
  white-space: nowrap;
}
.vf-listen-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.vf-listen-btn:active { transform: translateY(0); }

/* Sub-bar: auth nav + last updated */
body.page-home .home-header-sub {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.page-home .home-header-sub-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-updated {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Override auth-nav for dark sub-bar */
body.page-home .home-header-sub .auth-nav {
  margin-left: auto;
}
body.page-home .home-header-sub .auth-nav-name { color: rgba(255,255,255,0.8); }
body.page-home .home-header-sub .auth-nav-link {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.18);
}
body.page-home .home-header-sub .auth-nav-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* Theme toggle on dark header */
body.page-home .theme-toggle {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
body.page-home .theme-toggle:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ── Hero Section ────────────────────────────────────────────────────── */
.vf-hero {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.vf-hero-title {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.vf-hero-title em {
  color: #FF8200;
  font-style: normal;
}
.vf-hero-sub {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
}

/* ── Status Strip: 4 sport tiles ─────────────────────────────────────── */
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 20px 28px;
}
.strip-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: default;
  transition: box-shadow 0.15s, transform 0.1s;
}
.strip-tile:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.strip-tile-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.strip-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.strip-sport-name {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-badge {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.strip-badge-live {
  background: #ff3b3b;
  color: #fff;
  animation: badge-pulse 1.4s ease-in-out infinite;
}
.strip-badge-final {
  background: var(--surface2);
  color: var(--muted);
}
.strip-badge-upcoming {
  background: rgba(255,130,0,0.15);
  color: #FF8200;
}
.strip-badge-off {
  background: var(--surface2);
  color: var(--muted);
  opacity: 0.6;
}
.strip-tile-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.strip-score {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.strip-result {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.strip-win { color: #6fcf6f; }
.strip-loss { color: #f47070; }
[data-theme="light"] .strip-win { color: #1a7a1a; }
[data-theme="light"] .strip-loss { color: #c0392b; }
.strip-vs {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.strip-time {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Main content ────────────────────────────────────────────────────── */
body.page-home .home-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  width: 100%;
  flex: 1;
}

/* ── 2x2 Sport Grid ──────────────────────────────────────────────────── */
.sport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Override existing .sport-card for grid layout */
body.page-home .sport-card {
  padding: 0;
  gap: 0;
  border-radius: 10px;
  border: none;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

/* Orange card header strip */
.card-strip {
  background: #FF8200;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-strip-name {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-strip-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: radio-pulse 1.4s ease-in-out infinite;
  display: none;
}
.card-strip-live-dot.visible { display: block; }

/* Card inner body */
.card-body-inner {
  background: var(--card);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── Team identity row ───────────────────────────────────────────────── */
.card-identity-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-t-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.card-record-wrap {
  flex: 1;
}
/* Override record-badge for compact card display */
body.page-home .card-record-wrap .record-badge {
  font-size: 1.2rem;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.card-wl-badge {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.card-wl-badge.win { background: #1e5c1e; color: #6fcf6f; }
.card-wl-badge.loss { background: #5c1e1e; color: #f47070; }
.card-wl-badge.neutral { background: var(--surface2); color: var(--muted); }
[data-theme="light"] .card-wl-badge.win { background: #d4edda; color: #1a5c1a; }
[data-theme="light"] .card-wl-badge.loss { background: #f8d7da; color: #b81c1c; }

/* ── Last game result line ───────────────────────────────────────────── */
.card-result-line {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-offseason-msg {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.03em;
  text-align: center;
  width: 100%;
  padding: 8px 0;
}
.card-result-date {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

/* ── Next game line ──────────────────────────────────────────────────── */
.card-next-line {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.card-next-line .opp-rank { font-size: 0.82rem; }

/* ── Meta line (date/time/tv) ────────────────────────────────────────── */
.card-meta-line {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.card-meta-line .countdown {
  font-size: 0.75rem;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

/* ── View Schedule button ────────────────────────────────────────────── */
.btn-view-sched {
  margin-top: 6px;
  background: #1a1a1a;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 0;
  text-transform: uppercase;
  width: 100%;
  transition: background 0.15s, transform 0.1s;
}
.btn-view-sched:hover { background: #333; transform: translateY(-1px); }
.btn-view-sched:active { transform: translateY(0); }
[data-theme="light"] .btn-view-sched { background: #2d2d2d; }
[data-theme="light"] .btn-view-sched:hover { background: #444; }

/* ── Expandable schedule area ────────────────────────────────────────── */
.card-schedule-expand {
  display: none;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}

/* ── Live section inside new card ────────────────────────────────────── */
body.page-home .live-section {
  border-radius: 6px;
}

/* ── Game-day banner inside new card ─────────────────────────────────── */
body.page-home .gameday-banner {
  border-radius: 6px;
}

/* ── Secondary row: Upcoming + Quick Take ────────────────────────────── */
.secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.secondary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}
.secondary-card-header {
  background: #FF8200;
  color: #fff;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  text-transform: uppercase;
}
.secondary-card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Upcoming game rows */
.upcoming-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
}
.upcoming-bullet {
  color: var(--orange);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.upcoming-content { flex: 1; color: var(--text); line-height: 1.4; }
.upcoming-sport {
  font-weight: 700;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange);
}
.upcoming-time {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  margin-top: 1px;
}

/* Quick Take rows */
.quick-take-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
}
.quick-take-text {
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  flex: 1;
}

/* ── Latest Headlines ────────────────────────────────────────────────── */
.headlines-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}
.headlines-card-header {
  background: #FF8200;
  color: #fff;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  text-transform: uppercase;
}
.headlines-list {
  display: flex;
  flex-direction: column;
}
.headline-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.12s;
}
.headline-row:last-child { border-bottom: none; }
.headline-row:hover { background: var(--row-hover); }
.headline-arrow {
  color: var(--orange);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.headline-sport-tag {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
  padding: 1px 6px;
  flex-shrink: 0;
  margin-top: 1px;
}
.headline-text {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

/* ── Admin pending banner (keep but restyle) ─────────────────────────── */
body.page-home .admin-pending-banner {
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ── Notification CTA + Mobile Setup (scoped) ────────────────────────── */
body.page-home .home-extras {
  padding-top: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 0;
}

/* ── Card strip right: status badge + live dot ───────────────────────── */
.card-strip-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-status-badge {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.4;
}
.status-live {
  background: #ff3b3b;
  color: #fff;
  animation: badge-pulse 1.4s ease-in-out infinite;
}
.status-final {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.status-upcoming {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}
.status-offseason {
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.55);
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── Record badge: ranked display ────────────────────────────────────── */
.card-tn-label {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

/* ── Two-button row ──────────────────────────────────────────────────── */
.card-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.card-btn-row .btn-view-sched {
  flex: 1;
  margin-top: 0;
}

.btn-listen-live {
  flex: 0 0 auto;
  background: var(--orange);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 9px 13px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: filter 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}
.btn-listen-live:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-listen-live:active { transform: translateY(0); }

/* ── Storylines strip ────────────────────────────────────────────────── */
.storylines-strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}
.storylines-strip-header {
  background: #FF8200;
  color: #fff;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  text-transform: uppercase;
}
.storyline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.storyline-item:last-child { border-bottom: none; }
.storyline-item:hover { background: var(--row-hover); }
.storyline-arrow {
  color: var(--orange);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.storyline-tag {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
  padding: 1px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.storyline-text {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

/* ── Upcoming rows: tappable feel ────────────────────────────────────── */
.upcoming-row {
  border-radius: 5px;
  padding: 4px 6px;
  margin: 0 -6px;
  transition: background 0.12s;
}
.upcoming-row:hover { background: var(--row-hover); }

/* ── Footer enhancements ─────────────────────────────────────────────── */
.footer-source {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sport-grid { grid-template-columns: 1fr; }
  .secondary-row { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .vf-nav { display: none; } /* Hide nav tabs on tablet — keep brand + listen */
  .vf-hero-title { font-size: 2rem; }
}

@media (max-width: 600px) {
  .vf-navbar-inner {
    padding: 0 12px;
    height: 54px;
    gap: 10px;
  }
  .vf-brand-name { display: none; } /* Show only T logo on very small screens */
  .status-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px 20px;
    gap: 10px;
  }
  .vf-hero { padding: 24px 12px 16px; }
  .vf-hero-title { font-size: 1.7rem; }
  .vf-hero-sub { font-size: 0.88rem; }
  body.page-home .home-content { padding: 16px 12px; }
  .sport-grid, .secondary-row { gap: 14px; }
  .card-body-inner { padding: 14px 14px 12px; }
  body.page-home .home-extras { padding-left: 12px; padding-right: 12px; }
  .btn-listen-live { padding: 9px 10px; font-size: 0.78rem; }
  .storyline-text { font-size: 0.85rem; }
}
