/* ============================================
   NEXSTAR STATION PLATFORM - THEME SYSTEM
   CSS Custom Properties injected per-station
   from station.json at build time.
   ============================================ */

:root {
  /* Station brand colors */
  --color-primary: #0f1923;
  --color-primary-light: #1a2a3a;
  --color-secondary: #c41e3a;
  --color-accent: #d4a843;
  --color-bg: #ffffff;
  --color-surface: #f4f5f7;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-breaking: #c41e3a;
  --color-live: #e52528;
  --color-border: #e5e7eb;

  /* Station fonts */
  --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout tokens */
  --max-width: 1320px;
  --content-width: 860px;
  --sidebar-width: 340px;
  --gap: 1.25rem;
  --gap-sm: 0.75rem;
  --gap-lg: 2rem;
  --radius: 6px;
  --radius-lg: 10px;

  /* Typography scale */
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-xl: 0 8px 30px rgba(0,0,0,0.15);
}

/* ============================================
   NEXSTAR STATION PLATFORM - BASE STYLES
   Production-grade TV station news website.
   Theme variables from theme.css drive branding.
   ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

p { margin-bottom: 0.875rem; }
ul, ol { padding-left: 1.25rem; margin-bottom: 0.875rem; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.grid-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap-lg);
}

@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.06em; }

/* ============================================
   TOP BAR (weather, live, sign up)
   ============================================ */

.top-bar {
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-sm);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar__weather {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.top-bar__weather-temp {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
}

.top-bar__weather-city {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}

.top-bar__date {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
}

.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-live);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-live:hover { text-decoration: none; background: #cf1f22; }

.btn-live__dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.8);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
}

.btn-signup:hover { color: #fff; text-decoration: none; }

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-logo:hover { text-decoration: none; }

.header-logo__img {
  height: 36px;
  width: auto;
}

@media (max-width: 480px) {
  .header-logo__img { height: 28px; }
}

/* Search */
.header-search {
  position: relative;
}

.header-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  color: #fff;
  font-size: var(--text-sm);
  width: 180px;
  transition: width 0.2s, background 0.2s;
}

.header-search input::placeholder { color: rgba(255,255,255,0.4); }

.header-search input:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  width: 240px;
}

.header-search__icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  width: 14px; height: 14px;
  pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  background: var(--color-primary-light);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.65rem 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.nav-link--highlight {
  background: var(--color-live) !important;
  color: #fff !important;
}

.nav-link--highlight:hover { background: #cf1f22 !important; }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
  list-style: none;
  padding: 0.4rem 0;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.is-open { display: flex; }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    border-radius: 0;
  }
  .nav-dropdown a { color: rgba(255,255,255,0.75); }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.06); color: #fff; }
}

/* ============================================
   BREAKING NEWS BAR
   ============================================ */

.breaking-bar {
  background: var(--color-breaking);
  color: #fff;
  padding: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  overflow: hidden;
  display: none;
}

.breaking-bar.is-active { display: block; }

.breaking-bar .container {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 0.75rem;
}

.breaking-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding: 0.15rem 0.6rem;
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: 800;
}

/* ============================================
   HERO / LEAD STORIES
   ============================================ */

.hero-section {
  padding: var(--gap-lg) 0 var(--gap) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--gap);
  min-height: 420px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-main .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-category {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.hero-main h2 {
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.hero-main h2 a { color: #fff; }
.hero-main h2 a:hover { text-decoration: none; opacity: 0.9; }

.hero-main .hero-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.5;
}

.hero-main .hero-meta {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  margin-top: 0.4rem;
}

/* Hero sidebar stories */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.hero-side-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background: #111;
}

.hero-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-card .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-side-card h3 {
  font-size: var(--text-base);
  color: #fff;
  line-height: 1.25;
}

.hero-side-card h3 a { color: #fff; }
.hero-side-card h3 a:hover { text-decoration: none; opacity: 0.9; }

.hero-side-card .hero-meta {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  margin-top: 0.25rem;
}

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

@media (max-width: 480px) {
  .hero-sidebar { flex-direction: column; }
}

/* ============================================
   VIDEO PLAYER
   ============================================ */

.video-player-section {
  background: #000;
  padding: var(--gap) 0;
}

.video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 860px;
}

.video-player__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.9);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.video-player__play:hover {
  background: var(--color-live);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-player__play svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
}

.video-player__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.video-player__live-badge {
  background: var(--color-live);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================
   LATEST NEWS TICKER
   ============================================ */

.news-ticker {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  overflow: hidden;
}

.news-ticker .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-ticker__label {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  white-space: nowrap;
  padding-right: 1rem;
  border-right: 2px solid var(--color-border);
}

.news-ticker__items {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  white-space: nowrap;
}

.news-ticker__item {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.news-ticker__item a { color: var(--color-text); }
.news-ticker__item a:hover { color: var(--color-primary); text-decoration: none; }

.news-ticker__dot {
  color: var(--color-secondary);
  margin-right: 0.5rem;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
}

.section-header h2 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header a {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header a:hover { text-decoration: none; }

/* ============================================
   STORY CARDS
   ============================================ */

.story-card {
  display: flex;
  gap: var(--gap);
  padding: var(--gap) 0;
  border-bottom: 1px solid var(--color-border);
}

.story-card:last-child { border-bottom: none; }

.story-card__image {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
}

.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.story-card__body { flex: 1; min-width: 0; }

.story-card__category {
  display: inline-block;
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.story-card__title {
  font-size: var(--text-lg);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.story-card__title a { color: var(--color-text); }
.story-card__title a:hover { color: var(--color-primary); text-decoration: none; }

.story-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.story-card__video-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 700;
}

@media (max-width: 600px) {
  .story-card { flex-direction: column; }
  .story-card__image { width: 100%; }
}

/* Compact story card (for topic grids) */
.story-card--compact {
  flex-direction: column;
  padding: 0;
  border-bottom: none;
}

.story-card--compact .story-card__image {
  width: 100%;
  margin-bottom: 0.5rem;
}

.story-card--compact .story-card__title { font-size: var(--text-base); }

/* ============================================
   TOPIC GRID
   ============================================ */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: var(--gap) 0;
}

@media (max-width: 1024px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .topic-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WEATHER WIDGET (sidebar)
   ============================================ */

.weather-widget {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-lg);
  padding: var(--gap);
  margin-bottom: var(--gap);
  color: #fff;
}

.weather-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--gap-sm);
}

.weather-widget__location {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.weather-widget__temp {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.weather-widget__condition {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-top: 0.15rem;
}

.weather-widget__details {
  display: flex;
  gap: 1rem;
  font-size: var(--text-xs);
  opacity: 0.7;
  margin-bottom: var(--gap-sm);
  padding-bottom: var(--gap-sm);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.weather-widget__forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  text-align: center;
  font-size: var(--text-xs);
}

.weather-widget__day { padding: 0.4rem 0; }

.weather-widget__day-name {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  opacity: 0.7;
}

.weather-widget__day-icon {
  font-size: 1.25rem;
  margin-bottom: 0.1rem;
}

.weather-widget__day-temp { font-weight: 700; }
.weather-widget__day-low { opacity: 0.5; }

.weather-widget__link {
  display: block;
  text-align: center;
  margin-top: var(--gap-sm);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.weather-widget__link:hover { opacity: 1; text-decoration: none; }

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar-section {
  margin-bottom: var(--gap-lg);
}

.sidebar-section__title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: var(--gap);
  font-weight: 800;
}

/* Trending */
.trending-list {
  list-style: none;
  padding: 0;
  counter-reset: trending;
}

.trending-list li {
  counter-increment: trending;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.trending-list li:last-child { border-bottom: none; }

.trending-list li::before {
  content: counter(trending);
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  margin-top: 0.1rem;
}

.trending-list li a {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.35;
}

.trending-list li a:hover { color: var(--color-primary); text-decoration: none; }

/* ============================================
   AD SLOTS
   ============================================ */

.ad-slot {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--gap);
}

.ad-slot--leaderboard { height: 90px; max-width: 728px; margin: var(--gap) auto; }
.ad-slot--billboard { height: 250px; max-width: 970px; margin: var(--gap) auto; }
.ad-slot--sidebar { width: 100%; height: 250px; }
.ad-slot--inline { width: 100%; height: 250px; }

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

.newsletter-box h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: 0.35rem;
}

.newsletter-box p {
  font-size: var(--text-sm);
  opacity: 0.75;
  margin-bottom: var(--gap-sm);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 4px;
  font-size: var(--text-sm);
  font-family: inherit;
}

.newsletter-form button {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
}

.newsletter-form button:hover { opacity: 0.9; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--gap-lg) 0 var(--gap) 0;
  margin-top: var(--gap-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .station-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: var(--text-sm); line-height: 1.6; }

.footer-nav h4 {
  color: #fff;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 0.35rem; }
.footer-nav a { color: rgba(255,255,255,0.55); font-size: var(--text-sm); }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 0.75rem; }

.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.15s;
}

.footer-social a:hover { background: var(--color-secondary); color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-header {
  padding: var(--gap-lg) 0 var(--gap) 0;
}

.article-header__category {
  display: inline-block;
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.article-header h1 {
  font-size: var(--text-4xl);
  line-height: 1.12;
  margin-bottom: 0.75rem;
  max-width: 800px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.article-header__author {
  font-weight: 700;
  color: var(--color-text);
}

.article-hero {
  margin-bottom: var(--gap);
}

.article-hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-hero figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.article-body {
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: var(--content-width);
}

.article-body p { margin-bottom: 1.25rem; }

.article-body h2 {
  font-size: var(--text-2xl);
  margin: 2rem 0 0.75rem;
}

.article-body h3 {
  font-size: var(--text-xl);
  margin: 1.5rem 0 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: var(--gap) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--gap-lg);
}

.article-tag {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.article-tag:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Related stories */
.related-stories {
  padding: var(--gap-lg) 0;
  border-top: 1px solid var(--color-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WEATHER PAGE
   ============================================ */

.weather-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  padding: var(--gap-lg) 0;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: var(--gap);
}

.weather-current__temp {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.weather-current__info h1 {
  color: #fff;
  font-size: var(--text-2xl);
  margin-bottom: 0.25rem;
}

.weather-current__condition {
  font-size: var(--text-lg);
  opacity: 0.8;
}

.weather-current__details {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  opacity: 0.7;
}

.weather-forecast-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  padding: var(--gap) 0;
}

.weather-forecast-day {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.weather-forecast-day__name {
  font-weight: 800;
  font-size: var(--text-xs);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.weather-forecast-day__icon {
  font-size: 1.5rem;
  margin: 0.25rem 0;
}

.weather-forecast-day__high {
  font-weight: 800;
  font-size: var(--text-lg);
}

.weather-forecast-day__low {
  opacity: 0.5;
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .weather-forecast-row { grid-template-columns: repeat(4, 1fr); }
  .weather-current__temp { font-size: 3.5rem; }
}

@media (max-width: 480px) {
  .weather-forecast-row { grid-template-columns: repeat(3, 1fr); }
}

.weather-radar {
  margin: var(--gap) 0;
}

.weather-radar__frame {
  aspect-ratio: 16/9;
  background: #1a2a3a;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
}

/* ============================================
   PRINT
   ============================================ */

@media print {
  .site-header, .site-nav, .top-bar, .breaking-bar,
  .ad-slot, .site-footer, .newsletter-box,
  .news-ticker, .video-player-section { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
  .container { max-width: 100%; padding: 0; }
  .grid-main { grid-template-columns: 1fr; }
}
