/* ==========================================================================
   StreamEastTV.live — Premium Dark Sports Portal Stylesheet
   Modern, fast, mobile-first, high contrast, ad-ready.
   ========================================================================== */

:root {
  --bg-base: #0a0d14;
  --bg-surface: #111622;
  --bg-surface-elevated: #182030;
  --bg-surface-highlight: #212c42;

  --border-subtle: #1f293d;
  --border-prominent: #2f3e5c;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-live: #ef4444;
  --accent-live-bg: rgba(239, 68, 68, 0.14);
  --accent-live-glow: rgba(239, 68, 68, 0.4);

  --accent-brand: #dc2626;
  --accent-brand-hover: #ef4444;
  --accent-gold: #f59e0b;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --container-max: 1240px;
  --header-height: 64px;
}

/* Box sizing & baseline reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151d2f 0%, var(--bg-base) 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-logo .brand-highlight {
  color: var(--accent-brand);
}

.brand-logo .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-live);
  box-shadow: 0 0 8px var(--accent-live);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .primary-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: var(--bg-surface-elevated);
}

.nav-link .badge-live {
  background-color: var(--accent-live-bg);
  color: var(--accent-live);
  border: 1px solid var(--accent-live);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 860px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Sports Secondary Sub-Navigation Bar
   ========================================================================== */
.sports-subnav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.sports-subnav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.sports-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.sports-subnav-link:hover, .sports-subnav-link.active {
  background-color: var(--accent-brand);
  border-color: var(--accent-brand);
  color: #ffffff;
}

/* ==========================================================================
   Hero & Headers
   ========================================================================== */
.page-hero {
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

.page-hero .hero-intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.hero-stats-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-stat-pill.live-pill {
  background-color: var(--accent-live-bg);
  border-color: var(--accent-live);
  color: var(--accent-live);
}

/* ==========================================================================
   Section Layouts & Grid
   ========================================================================== */
.section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-more-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-brand);
}

.section-more-link:hover {
  text-decoration: underline;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.last-updated-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
}

.last-updated-badge:empty {
  display: none;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Compact Sports Event Card Component
   ========================================================================== */
.event-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.event-card:hover {
  border-color: var(--border-prominent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.league-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}

.status-badge.status-live {
  background-color: var(--accent-live-bg);
  border: 1px solid var(--accent-live);
  color: var(--accent-live);
}

.status-badge.status-scheduled {
  background-color: var(--bg-surface-elevated);
  color: var(--text-muted);
}

.status-badge.status-final {
  background-color: var(--bg-surface-highlight);
  color: var(--text-secondary);
}

.event-matchup {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

.team-score {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 24px;
  text-align: right;
}

.event-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.broadcaster-tag {
  color: var(--accent-gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
}

.btn-card-primary {
  background-color: var(--accent-brand);
  color: #ffffff;
}

.btn-card-primary:hover {
  background-color: var(--accent-brand-hover);
}

.btn-card-secondary {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-card-secondary:hover {
  background-color: var(--bg-surface-highlight);
  color: #ffffff;
}

/* ==========================================================================
   Sports Hubs Cards
   ========================================================================== */
.sports-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sport-hub-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sport-hub-card:hover {
  border-color: var(--border-prominent);
}

.sport-hub-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sport-hub-icon {
  font-size: 1.75rem;
}

.sport-hub-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.sport-hub-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Broadcasters & Where-To-Watch Components
   ========================================================================== */
.broadcasters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.broadcaster-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.broadcaster-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  color: var(--accent-brand);
  margin-bottom: 0.5rem;
}

.broadcaster-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.broadcaster-network {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.broadcaster-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Ad Slot Component Architecture
   Clean, isolated, ready for Monetag integration, collapses with zero gap when disabled
   ========================================================================== */
.ad-slot-wrapper {
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ad-slot-wrapper:empty,
.ad-slot-box:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: none !important;
}

.ad-slot-box {
  background-color: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 970px;
  text-align: center;
}

.ad-slot-box.ad-type-leaderboard {
  min-height: 90px;
}

.ad-slot-box.ad-type-rectangle {
  max-width: 336px;
  min-height: 280px;
}

.ad-slot-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs-nav {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a:hover {
  color: var(--accent-brand);
}

.breadcrumb-separator {
  color: var(--border-prominent);
}

/* ==========================================================================
   Legal & Editorial Text Styles
   ========================================================================== */
.legal-section {
  max-width: 840px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  line-height: 1.7;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.contact-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.contact-card a {
  color: var(--accent-brand);
}

/* ==========================================================================
   Event Detail Page Styling
   ========================================================================== */
.event-detail-header {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.event-detail-matchup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .event-detail-matchup {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }
}

.matchup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.matchup-team-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.matchup-vs {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.event-info-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.info-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.info-item-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

