/* Vin-X Spectator CSS (v2.3) — Supersport-style shell + 3 rails (platform-first) */
:root{
  --bg:#070b12;
  --stage-max: 1400px;
  --radius: 16px;

  --topbar-h: 72px;

  /* Keep height (you like it) */
  --hero-h: 260px;

  --card-bg: rgba(255,255,255,.08);
  --card-pad: 12px;
  --emblem-size: 34px;

  --accent: #2ecc71;

  /* Banner rotation (seconds) */
  --ad-interval: 6;

  /* Banner slide feel */
  --ad-slide-dist: 28px;
  --ad-slide-ms: 360ms;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

body{
  margin:0;
  color:#fff;
  font-family: system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial, sans-serif;
  background: var(--bg) url('/dashboard/assets/background.jpg') center/cover fixed;
  overflow-x: hidden;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(46,204,113,.18), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.70), rgba(0,0,0,.72));
  z-index: 0;
}

a{ color: inherit; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display:flex;
  align-items:center;
  background: rgba(6,10,18,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner{
  width: 100%;
  max-width: var(--stage-max);
  margin: 0 auto;
  padding: 0 16px;
  display:flex;
  align-items:center;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  min-width: 180px;
}
.brand-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(46,204,113,.14);
}
.brand-text{ display:flex; flex-direction:column; line-height: 1.05; }
.brand-title{ font-weight: 800; letter-spacing: .2px; }
.brand-sub{ font-size: 12px; opacity: .78; }

.topnav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex: 1;
}
.topnav-link{
  text-decoration:none;
  font-weight: 650;
  font-size: 13px;
  opacity: .78;
  padding: 10px 10px;
  border-radius: 12px;
}
.topnav-link:hover{ opacity: 1; background: rgba(255,255,255,.06); }
.topnav-link.is-active{
  opacity: 1;
  background: rgba(46,204,113,.14);
  border: 1px solid rgba(46,204,113,.18);
}

.topsearch{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 360px;
}

.search{
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color:#fff;
  outline:none;
}
.search::placeholder{ color: rgba(255,255,255,.68); }

.clear-btn{
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46,204,113,.20);
  background: rgba(46,204,113,.18);
  color:#fff;
  cursor:pointer;
  font-weight: 700;
}
.clear-btn:hover{ background: rgba(46,204,113,.26); }

/* Hero */
.hero{
  position: relative;
  z-index: 1;
  max-width: var(--stage-max);
  margin: 14px auto 0;
  padding: 0 16px;
}

.hero-banner{
  position: relative;

  /* ✅ CHANGED: keep banner aspect ratio (1600x320 = 5:1) */
  aspect-ratio: 5 / 1;
  height: auto;

  border-radius: var(--radius);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ✅ Full-width sponsor creative + slide animation */
.hero-banner .ad-slide{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;

  opacity: 0;
  transform: translateX(var(--ad-slide-dist));
  pointer-events:none;

  transition:
    opacity var(--ad-slide-ms) ease,
    transform var(--ad-slide-ms) ease;
  z-index: 1;
}

.hero-banner .ad-slide.is-active{
  opacity: 1;
  transform: translateX(0);
  pointer-events:auto;
  z-index: 2;
}

/* Exit motion (slide left slightly) */
.hero-banner .ad-slide.is-exit{
  opacity: 0;
  transform: translateX(calc(var(--ad-slide-dist) * -1));
  pointer-events:none;
  z-index: 1;
}

/* 🔥 Make the artwork fill the tile */
.hero-banner img{
  width: 100%;
  height: 100%;

  /* ✅ CHANGED: show full banner without cropping */
  object-fit: contain;

  padding: 0;            /* no more “lost logo” padding */
  display:block;
}

.hero-banner:hover{
  outline: 2px solid rgba(255,255,255,.08);
}

/* Stage */
.stage{
  position: relative;
  z-index: 1;
  max-width: var(--stage-max);
  margin: 14px auto 24px;
  padding: 0 16px;
}

/* Promo strip */
.promo{
  margin-top: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.promo-kicker{
  display:inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 6px;
}
.promo-title{ font-weight: 850; font-size: 18px; }
.promo-sub{ opacity: .78; margin-top: 4px; font-size: 13px; }
.promo-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
}
.btn-primary{
  background: rgba(46,204,113,.22);
  border-color: rgba(46,204,113,.25);
}
.btn-primary:hover{ background: rgba(46,204,113,.30); }
.btn-ghost{
  background: rgba(255,255,255,.06);
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

/* Sections */
.section{
  margin-top: 18px;
  padding: 14px 0 6px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 6px 0 12px;
}
.section-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}
.section-meta{
  font-size: 12px;
  opacity: .78;
}

/* See more button */
.see-more{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-weight: 850;
  font-size: 12px;
}
.see-more:hover{ background: rgba(255,255,255,.10); }

/* Cards grid */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.cards .card{
  text-decoration: none;
  color:#fff;
  outline: none;
}

.cards .card:focus-visible{
  box-shadow: 0 0 0 3px rgba(46,204,113,.9);
  border-radius: var(--radius);
}

.cards .card--compact{
  display:block;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: var(--card-pad);
  min-height: 86px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.26);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  position: relative;
  overflow: hidden;
}

.cards .card--compact:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
  background: rgba(255,255,255,.10);
  border-color: rgba(46,204,113,.18);
}

.card--compact .topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.card--compact .side{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width:0;
}

.card--compact .crest{
  width: var(--emblem-size);
  height: var(--emblem-size);
  border-radius: 50%;
  object-fit: cover;
  flex:0 0 var(--emblem-size);
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.10);
}

.card--compact .school-name{
  font-weight: 850;
  font-size: 13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 220px;
}

.card--compact .sport{
  font-size: 12px;
  opacity: .85;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

.card--compact .meta{
  margin-top: 10px;
  font-size: 11px;
  opacity: .95;
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
}

.card--compact .pill{
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.10);
}
.pill-live{ background:#E53935; }
.pill-up{ background:#2D7DFF; }
.pill-ft{ background:#90A4AE; }

/* Footer */
.footer{
  position: relative;
  z-index: 1;
  padding: 18px 16px 26px;
  text-align:center;
  opacity: .88;
}
.footer-inner{
  font-size: 13px;
  text-shadow:0 1px 2px rgba(0,0,0,.7);
}

/* Responsive */
@media (max-width: 980px){
  .topnav{ display:none; }
  .topsearch{ min-width: 260px; }
  :root{ --hero-h: 210px; }
  body{ background-attachment: scroll; }
}

@media (max-width: 640px){
  .topbar-inner{ gap: 10px; }
  .brand{ min-width: 0; }
  .topsearch{ min-width: 0; flex: 1; }
  .promo{ flex-direction: column; align-items: flex-start; }
  .promo-actions{ width: 100%; }
  .btn{ width: 100%; }
}

@media (max-width: 520px){
  .card--compact .school-name{ max-width: 150px; }
}
