/* =============================================
   E-News | Modern Newspaper UI
   Author: Antigravity (AI)
   ============================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Colors - Light Mode */
  --bg-primary: #f8f7f4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: #1a1a1a;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #888899;
  --text-inverse: #ffffff;
  --accent-red: #c0392b;
  --accent-red-dark: #96281b;
  --accent-blue: #1565c0;
  --accent-gold: #d4a017;
  --border-color: #e0ddd6;
  --border-subtle: #f0ede8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
  
  /* Category Colors */
  --cat-tech: #1565c0;
  --cat-sports: #1b5e20;
  --cat-india: #b71c1c;
  --cat-world: #4a148c;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-article: 'Source Serif 4', Georgia, serif;

  /* Spacing & Layout */
  --container-max: 1320px;
  --nav-height: 60px;
  --ticker-height: 40px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --bg-primary: #0d0d12;
  --bg-secondary: #141420;
  --bg-card: #1a1a28;
  --bg-nav: #0a0a10;
  --text-primary: #e8e6f0;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --border-color: #2a2a3a;
  --border-subtle: #1e1e2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--bg-nav);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-date {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-edition {
  background: var(--accent-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-bar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-links a:hover {
  color: var(--accent-gold);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 3px solid var(--accent-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: background 0.3s ease;
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-red), #e74c3c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-display);
  box-shadow: 0 2px 8px rgba(192,57,43,0.4);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-red);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  background: none;
  font-family: var(--font-body);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-red);
  background: rgba(192,57,43,0.08);
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Search */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
}

.search-toggle:hover {
  background: var(--border-subtle);
  color: var(--accent-red);
}

.search-toggle svg { width: 18px; height: 18px; }

.search-box {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 300px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.search-box.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper svg { 
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

#search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
}

#search-input::placeholder { color: var(--text-muted); }

.search-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-result-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:hover { background: var(--bg-primary); }

.search-result-item .result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .result-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.search-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Dark Mode Toggle */
.dark-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
}

.dark-toggle:hover {
  background: var(--border-subtle);
  color: var(--accent-gold);
}

.dark-toggle svg { width: 18px; height: 18px; }

/* Subscribe Button */
.btn-subscribe {
  background: linear-gradient(135deg, var(--accent-red), #e74c3c);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(192,57,43,0.3);
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.4);
}

/* Mobile Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.ticker-bar {
  background: var(--accent-red);
  color: white;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background: var(--accent-red-dark);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}

.ticker-label .pulse {
  width: 7px;
  height: 7px;
  background: #ffd700;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.6); }
}

.ticker-scroll {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 500;
}

.ticker-item::before {
  content: '●';
  margin-right: 12px;
  font-size: 8px;
  opacity: 0.7;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.section-link:hover { opacity: 0.75; }

/* ============================================
   FEATURED HERO
   ============================================ */
.featured-section {
  padding: 32px 0 24px;
}

.featured-hero {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.featured-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.featured-hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.featured-hero:hover .featured-hero-image {
  transform: scale(1.02);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.1) 70%,
    transparent 100%
  );
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 40px;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.featured-tag::before {
  content: '★';
  font-size: 9px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.featured-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 16px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   CATEGORY FILTER BAR
   ============================================ */
.filter-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 6px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
  box-shadow: 0 2px 8px rgba(192,57,43,0.3);
}

.filter-btn[data-cat="Tech"].active { background: var(--cat-tech); border-color: var(--cat-tech); box-shadow: 0 2px 8px rgba(21,101,192,0.3); }
.filter-btn[data-cat="Sports"].active { background: var(--cat-sports); border-color: var(--cat-sports); box-shadow: 0 2px 8px rgba(27,94,32,0.3); }
.filter-btn[data-cat="India"].active { background: var(--cat-india); border-color: var(--cat-india); box-shadow: 0 2px 8px rgba(183,28,28,0.3); }
.filter-btn[data-cat="World"].active { background: var(--cat-world); border-color: var(--cat-world); box-shadow: 0 2px 8px rgba(74,20,140,0.3); }

.articles-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-section {
  padding-bottom: 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- News Card ---- */
.news-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--border-subtle);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-image { transform: scale(1.06); }

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

.card-category[data-cat="Tech"] { background: var(--cat-tech); }
.card-category[data-cat="Sports"] { background: var(--cat-sports); }
.card-category[data-cat="India"] { background: var(--cat-india); }
.card-category[data-cat="World"] { background: var(--cat-world); }

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.news-card:hover .card-title { color: var(--accent-red); }

.card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  font-family: var(--font-article);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.card-author-info span:first-child {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-author-info span:last-child {
  font-size: 11px;
  color: var(--text-muted);
}

.card-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   SIDEBAR / TWO-COLUMN LAYOUT
   ============================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding-bottom: 48px;
}

/* ---- Sidebar ---- */
.sidebar {}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 28px;
}

.widget-header {
  padding: 14px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trending-list {
  padding: 8px 0;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}

.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--bg-primary); }

.trending-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--border-color);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.trending-item:hover .trending-num { color: var(--accent-red); }

.trending-content {}

.trending-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

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

/* Newsletter Widget */
.newsletter-widget {
  padding: 24px 20px;
}

.newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.newsletter-widget p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--font-body);
}

.newsletter-input:focus { border-color: var(--accent-red); }

.newsletter-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--accent-red), #e74c3c);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192,57,43,0.35);
}

/* Tags Widget */
.tags-cloud {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 32px;
  color: var(--text-muted);
}

.no-results .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-nav);
  color: rgba(255,255,255,0.75);
  padding-top: 56px;
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-red), #e74c3c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-display);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: white;
}

.footer-logo-text span { color: var(--accent-red); }

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--accent-red);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

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

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   ARTICLE MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.modal-body {
  padding: 32px;
}

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

.modal-category[data-cat="Tech"] { background: var(--cat-tech); }
.modal-category[data-cat="Sports"] { background: var(--cat-sports); }
.modal-category[data-cat="India"] { background: var(--cat-india); }
.modal-category[data-cat="World"] { background: var(--cat-world); }

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.modal-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 20px;
}

.modal-content {
  font-family: var(--font-article);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.modal-content p { margin-bottom: 16px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover { background: var(--accent-red); }
.modal-close svg { width: 16px; height: 16px; }

.modal-header-wrap {
  position: relative;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
  border-left: 3px solid var(--accent-red);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--accent-red);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 500;
}

.scroll-top-btn.visible {
  transform: translateX(-50%) translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent-red-dark);
  box-shadow: var(--shadow-lg);
}

.scroll-top-btn svg { width: 20px; height: 20px; }

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--border-subtle) 25%, var(--border-color) 50%, var(--border-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.skeleton-img { height: 200px; }
.skeleton-title { height: 20px; margin: 16px; }
.skeleton-text { height: 14px; margin: 8px 16px; }
.skeleton-text.short { width: 60%; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  
  .top-bar { display: none; }
  
  .nav-links, .btn-subscribe {
    display: none;
  }
  
  .nav-hamburger { display: flex; }
  
  .news-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .featured-hero-image { height: 320px; }
  .featured-content { padding: 24px 20px; }
  .featured-title { font-size: 22px; }
  
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
  
  .modal-body { padding: 20px; }
  .modal-title { font-size: 22px; }
  .modal-img { height: 220px; }
}

@media (max-width: 580px) {
  .main-container { padding: 0 16px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

.mobile-nav.open {
  pointer-events: all;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-secondary);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 0;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }

.mobile-nav-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-red);
  background: rgba(192,57,43,0.05);
  padding-left: 28px;
}

@media (max-width: 768px) {
  .mobile-nav { display: block; }
}
