/* ═══════════════════════════════════════════════════════
   LAYOUT.CSS
   Search overlay · Nav · Page wrapper · Hero ·
   Content-grid · Sidebar · Footer
═══════════════════════════════════════════════════════ */

/* ── SEARCH OVERLAY ──────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(12px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay.is-open {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 640px;
  position: relative;
}
.search-box input {
  width: 100%;
  background: var(--coal-card);
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 18px 56px 18px 24px;
  font-family: var(--font-body);
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--white);
  outline: none;
  letter-spacing: 0.04em;
  transition: border-color var(--t-accent);
}
.search-box input::placeholder {
  color: var(--grey-mid);
}

.search-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--grey-mid);
  font-size: var(--fs-heading);
  line-height: 1;
  transition: color var(--t-fast);
}
.search-close:hover {
  color: var(--white);
}

/* ── NAVIGATION ──────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(17, 16, 16, 0.97);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 2px solid var(--red-nav);
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: var(--fs-score);
  letter-spacing: 0.06em;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-star {
  color: var(--accent);
  font-size: var(--fs-body);
  margin: 0 3px;
  transition: color var(--t-accent);
}
.logo-beat {
  color: var(--accent);
  transition: color var(--t-accent);
}

/* Sport links */
.nav-sports {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-sports::-webkit-scrollbar {
  display: none;
}

.nav-sports a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--r-md);
  color: var(--grey-hi);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast);
}
.nav-icon {
  font-size: var(--fs-desc);
  line-height: 1;
}

.nav-sports a:hover {
  background: var(--coal-hover);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-sports a:active {
  transform: scale(0.95);
}
.nav-sports a.is-active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  transition:
    color var(--t-accent),
    background var(--t-fast);
}

/* Action buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-search-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--grey-hi);
  padding: 7px 9px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}
.nav-search-btn svg {
  width: 18px;
  height: 18px;
}
.nav-search-btn:hover {
  background: var(--coal-hover);
  color: var(--white);
  border-color: var(--grey-lo);
}
.nav-search-btn:active {
  transform: scale(0.92);
}

.nav-picks {
  background: var(--accent);
  color: #111;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 17px;
  border-radius: var(--r-md);
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition:
    background var(--t-accent),
    transform var(--t-fast),
    box-shadow var(--t-base);
}
.nav-picks-icon {
  font-size: var(--fs-body);
  filter: drop-shadow(0 0 4px #fff6);
}
.nav-picks:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 0 18px var(--accent-glow);
}
.nav-picks:active {
  transform: scale(0.95);
}

.nav-scoreboard {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--coal-border);
  color: var(--grey-hi);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition:
    border-color var(--t-base),
    color var(--t-base),
    background var(--t-base);
}
.nav-scoreboard:hover {
  border-color: var(--grey-lo);
  color: var(--white);
  background: var(--coal-hover);
}
.nav-scoreboard:active {
  transform: scale(0.95);
}

/* ── PAGE WRAPPER ─────────────────────────────────────── */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px var(--gap-lg);
  position: relative;
  z-index: 1;
}

/* ── HERO GRID ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3px;
  margin-bottom: 24px;
  border: 1px solid var(--coal-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

/* Main large story */
.hero-main {
  grid-row: 1 / 4;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  cursor: pointer;
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition:
    transform 0.7s ease,
    filter 0.4s ease;
}
.hero-main:hover img {
  transform: scale(1.03);
  filter: brightness(0.58);
}

.hero-main-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(17, 16, 16, 0.97) 0%,
    rgba(17, 16, 16, 0.35) 55%,
    transparent 100%
  );
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero-title);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 14px 0 12px;
}

.hero-desc {
  font-size: var(--fs-desc);
  font-weight: 300;
  color: var(--grey-hi);
  max-width: 540px;
  line-height: 1.55;
}

/* Side cards column */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 156px;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38);
  transition:
    transform 0.5s ease,
    filter 0.3s ease;
}
.hero-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.56);
}

.hero-card-content {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(17, 16, 16, 0.92) 0%,
    transparent 70%
  );
}
.hero-card-sport {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  transition: color var(--t-accent);
}
.hero-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: #fff;
}

/* ── MUST WATCH TONIGHT ──────────────────────────────── */
.must-watch {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--coal-card);
  border: 1px solid var(--coal-border);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  margin-bottom: 20px;
  cursor: pointer;
  line-height: 2;
  transition:
    background var(--t-base),
    border-left-color var(--t-accent);
  animation: fadeUp 0.4s ease 0.1s both;
}
.must-watch:hover {
  background: var(--coal-hover);
}

.must-watch-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--t-accent);
}
.mw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-live);
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}

.must-watch-game {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}
.must-watch-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--grey-mid);
  letter-spacing: 0.07em;
  margin-top: 3px;
}

.must-watch-right {
  text-align: right;
  flex-shrink: 0;
}
.must-watch-time {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.must-watch-channel {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── CONTENT GRID (articles + sidebar) ─────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  margin-bottom: var(--gap-xl);
  align-items: start;
}

.content-main {
  min-width: 0;
} /* prevent blowout */

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 80px; /* just below nav */
  align-self: start;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--coal-mid);
  border-top: 1px solid var(--coal-border);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-size: var(--fs-heading);
}

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: color var(--t-base);
}
.footer-links a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-main {
    grid-row: auto;
    min-height: 360px;
  }
  .hero-side {
    flex-direction: row;
  }
  .hero-card {
    min-height: 140px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar > * {
    min-width: 260px;
    flex: 1;
  }

  .must-watch {
    grid-template-columns: auto 1fr;
  }
  .must-watch-right {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .nav-sports a {
    font-size: var(--fs-label);
    padding: 5px 8px;
  }
  .page {
    padding: 20px 14px;
  }

  .hero-side {
    flex-direction: column;
  }

  .must-watch {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

.content-grid--post {
  max-width: 1060px;
  gap: 28px;
  margin-inline: auto;
}

.nav-legends {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--coal-border);
  color: var(--grey-hi);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    border-color var(--t-base),
    color var(--t-base),
    background var(--t-base);
}
.nav-legends:hover {
  border-color: var(--grey-lo);
  color: var(--white);
  background: var(--coal-hover);
}
.nav-legends.is-active {
  border-color: var(--accent);
  color: var(--accent);
  transition:
    border-color var(--t-accent),
    color var(--t-accent);
}
