/* ════════════════════════════════════════════════════════════════
   SUMMERS NEWS — Main Stylesheet
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Category accent colors */
  --accent-ai: #3b82f6;
  --accent-gaming: #a855f7;
  --accent-entertainment: #f59e0b;
  --accent-local: #991b1b;
  --accent-world: #059669;
  --accent-business: #0891b2;
  --accent-breaking: #ef4444;

  /* Theme (light) */
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --header-bg: rgba(255,255,255,0.96);
  --header-border: #e2e8f0;
  --hero-overlay: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-alt: #0f0f1a;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #1f1f2e;
  --border-light: #1a1a28;
  --header-bg: rgba(10,10,15,0.96);
  --header-border: #1f1f2e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 10px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-ai); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════ */

.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.3s;
}
.logo:hover { opacity: 1 !important; color: var(--accent-ai); }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent-ai), #8b5cf6); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; font-weight: 700; font-family: 'Inter', sans-serif; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--bg-card);
}
.nav a.active {
  color: var(--accent-ai);
  font-weight: 600;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle, .search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.theme-toggle:hover, .search-toggle:hover {
  background: var(--bg-card);
  color: var(--text);
}

.btn-newsletter {
  background: linear-gradient(135deg, var(--accent-ai), #6366f1);
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-newsletter:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  font-size: 24px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* ── Breaking News Ticker ── */
.breaking-ticker {
  background: var(--accent-breaking);
  color: white;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}
.breaking-ticker-label {
  background: rgba(255,255,255,0.2);
  padding: 0 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
  z-index: 2;
}
.breaking-ticker-label span { margin-right: 6px; }
.breaking-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 100%;
}
.breaking-ticker-track:hover { animation-play-state: paused; }
.breaking-ticker-item {
  padding: 0 40px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.breaking-ticker-item a { color: white; }
.breaking-ticker-item a:hover { text-decoration: underline; opacity: 1; }
.breaking-ticker-sep { color: rgba(255,255,255,0.5); }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════════════════
   HERO CAROUSEL
   ════════════════════════════════════════════════════════════════════════ */

.hero-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 8px;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  min-height: 420px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 420px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.98);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.carousel-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
}

.carousel-source {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}
.carousel-source img { border-radius: 2px; }

.carousel-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  max-width: 600px;
}

/* Carousel nav dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.3);
}
.carousel-dot:hover { border-color: white; }

/* ════════════════════════════════════════════════════════════════════════
   TRENDING NOW
   ════════════════════════════════════════════════════════════════════════ */

.trending-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.trending-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.trending-title .fire { font-size: 20px; }

.trending-controls { display: flex; gap: 6px; }
.trending-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all 0.2s;
}
.trending-btn:hover { background: var(--bg-card-hover); color: var(--text); }

.trending-track-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trending-track-wrapper::-webkit-scrollbar { display: none; }

.trending-track {
  display: flex;
  gap: 14px;
  padding-bottom: 4px;
}

.trending-card {
  flex: 0 0 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.25s ease;
  cursor: pointer;
  min-width: 0;
}
.trending-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-ai);
}

.trending-card-thumb {
  height: 80px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.trending-card-source {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trending-card-source img { border-radius: 2px; }

.trending-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card-fire {
  color: #ef4444;
  font-size: 12px;
  margin-left: auto;
  animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ════════════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ════════════════════════════════════════════════════════════════════════ */

.main-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.content { min-width: 0; }
.sidebar { min-width: 0; }

/* ════════════════════════════════════════════════════════════════════════
   CATEGORY BLOCKS
   ════════════════════════════════════════════════════════════════════════ */

.section-block {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  font-size: 22px;
}

.section-view-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.section-view-all:hover {
  background: var(--bg-card);
  color: var(--accent-ai);
}

/* Story Card Grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.story-card:hover::before { opacity: 1; }

.story-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.story-source {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.story-source img { border-radius: 2px; flex-shrink: 0; }

.story-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

.story-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-title a {
  color: var(--text);
  transition: color 0.2s;
}
.story-card:hover .story-title a { color: var(--accent-ai); }

.story-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-meta-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════════════
   NEWSLETTER CTA
   ════════════════════════════════════════════════════════════════════════ */

.newsletter-cta {
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent-ai), #6366f1, #8b5cf6);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  text-align: center;
}

.newsletter-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.newsletter-cta p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.newsletter-form button {
  padding: 12px 24px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════════════════════════════════════
   WEATHER WIDGET (Sidebar)
   ════════════════════════════════════════════════════════════════════════ */

.sidebar-widget {
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.weather-days { display: flex; flex-direction: column; gap: 8px; }

.weather-day {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.weather-day:last-child { border-bottom: none; }

.weather-day-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.weather-main {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.weather-cond {
  font-size: 11px;
  color: var(--text-muted);
}

.weather-rain {
  font-size: 12px;
  color: var(--accent-ai);
  display: flex;
  align-items: center;
  gap: 3px;
}

.weather-unavailable {
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px;
  text-align: center;
}

/* Sidebar about card */
.sidebar-about {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sidebar-about strong { color: var(--text); }

/* ════════════════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════════════════════════════════════ */

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.article-header {
  margin-bottom: 24px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.article-back:hover { background: var(--bg-card); color: var(--accent-ai); }

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  margin-bottom: 12px;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article-meta-source {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-source img { border-radius: 3px; }

.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.article-body p {
  margin-bottom: 20px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.article-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.share-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-ai);
  border-color: var(--accent-ai);
}

.article-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ════════════════════════════════════════════════════════════════════════
   CATEGORY PAGE
   ════════════════════════════════════════════════════════════════════════ */

.category-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.category-hero-inner {
  padding: 40px;
  border-radius: var(--radius-lg);
  color: white;
}

.category-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-hero-desc {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
}

.category-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  backdrop-filter: blur(4px);
}

.search-overlay.open { display: flex; }

.search-overlay-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.search-overlay-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.search-overlay-input:focus { border-color: var(--accent-ai); }

.search-overlay-close {
  position: absolute;
  top: 80px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 24px;
  transition: all 0.2s;
}
.search-overlay-close:hover { background: var(--bg-card-hover); }

/* Hamburger mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-card); }
.mobile-menu a.active { color: var(--accent-ai); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */

.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover { color: var(--accent-ai); }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-section { padding: 16px 16px 8px; }
  .main-layout { padding: 8px 16px 24px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .header-main { padding: 0 16px; }
  .hero-section { padding: 12px 0 8px; }

  .carousel { min-height: 300px; }
  .carousel-slides { height: 300px; }
  .carousel-slide { padding: 24px; }
  .carousel-title { font-size: 22px; }
  .carousel-desc { font-size: 14px; }
  .carousel-dots { right: 20px; bottom: 14px; }

  .story-grid { grid-template-columns: 1fr; }

  .section-block { margin-bottom: 28px; }

  .sidebar { grid-template-columns: 1fr; }

  .article-title { font-size: 26px; }
  .article-body { font-size: 16px; }

  .category-hero-inner { padding: 24px; }
  .category-hero-title { font-size: 28px; }

  .newsletter-form { flex-direction: column; }

  .trending-card { flex: 0 0 220px; }

  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .search-overlay { padding-top: 80px; }
  .search-overlay-close { top: 40px; right: 16px; }
}

@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .carousel-title { font-size: 18px; }
  .carousel-desc { font-size: 13px; }
  .carousel-slide { padding: 16px; }
  .trending-card { flex: 0 0 180px; }
  .story-card { padding: 14px; }
}

/* ════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
