/* ============================================================
   EL SALVADOR TODAY — Design System
   Satirical newspaper parody — serious visual, absurd content
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  /* Colors */
  --color-primary: #D42A2A;
  --color-primary-dark: #8B0000;
  --color-primary-light: #E85D5D;
  --color-secondary: #1A1A2E;
  --color-secondary-light: #16213E;
  --color-accent: #FFD700;
  --color-accent-dark: #DAA520;
  --color-text: #F5F5F5;
  --color-text-muted: #A0A0B0;
  --color-text-dark: #666680;
  --color-surface: #16213E;
  --color-surface-light: #1E2A4A;
  --color-surface-hover: #253359;
  --color-border: rgba(255, 215, 0, 0.15);
  --color-border-light: rgba(245, 245, 245, 0.08);
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-success: #2ECC71;
  --color-warning: #F39C12;
  --color-error: #E74C3C;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 15px rgba(255, 215, 0, 0.1);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --header-height: 80px;
  --container-max: 1280px;
  --container-narrow: 900px;
  --sidebar-width: 320px;
  --gap: var(--space-8);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-secondary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-primary);
  color: var(--color-text);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-dark);
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
}

small, .text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.font-mono {
  font-family: var(--font-mono);
}

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ----- Utility Classes ----- */
.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;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }

.w-full { width: 100%; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* ----- Divider ----- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

.divider--gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-6) 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface-light);
  color: var(--color-text);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ----- Header / Navigation ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: background var(--transition-base);
}

.header.scrolled {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header__logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
  background: rgba(255, 215, 0, 0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-secondary);
  z-index: 999;
  padding: var(--space-20) var(--space-8) var(--space-8);
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  opacity: 0;
  transform: translateY(-20px);
  transition: all var(--transition-slow);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav .nav__link {
  font-size: var(--text-2xl);
  padding: var(--space-4) var(--space-6);
}

/* Header top bar (breaking news ticker) */
.header__top-bar {
  background: var(--color-primary);
  padding: var(--space-1) 0;
  overflow: hidden;
}

.ticker {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ticker__text {
  font-size: var(--text-sm);
  color: var(--color-text);
}

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

/* ----- Hero Section ----- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--space-12);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.6) 40%,
    rgba(26, 26, 46, 0.3) 70%,
    rgba(26, 26, 46, 0.1) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-12) 0;
  max-width: 800px;
}

.hero__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__title a {
  color: var(--color-text);
}

.hero__title a:hover {
  color: var(--color-accent);
}

.hero__excerpt {
  font-size: var(--text-lg);
  color: rgba(245, 245, 245, 0.85);
  margin-bottom: var(--space-6);
  line-height: 1.6;
  max-width: 600px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-dark);
}

/* ----- News Grid ----- */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title__more {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.section-title__more:hover {
  color: var(--color-accent);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* ----- News Card ----- */
.news-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 215, 0, 0.25);
}

.news-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-secondary-light);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 2;
}

.category-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.category-tag--politica {
  background: var(--color-primary);
  color: var(--color-text);
}

.category-tag--sociedad {
  background: #2C3E50;
  color: var(--color-text);
}

.category-tag--internacional {
  background: #8E44AD;
  color: var(--color-text);
}

.category-tag--opinion {
  background: #D35400;
  color: var(--color-text);
}

.category-tag--economia {
  background: #27AE60;
  color: var(--color-text);
}

.category-tag--tecnologia {
  background: #2980B9;
  color: var(--color-text);
}

.news-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

.news-card__title a {
  color: var(--color-text);
}

.news-card__title a:hover {
  color: var(--color-accent);
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-xs);
  color: var(--color-text-dark);
}

.news-card__date {
  font-family: var(--font-mono);
}

.news-card__share {
  display: flex;
  gap: var(--space-2);
}

.news-card__share button {
  background: none;
  border: none;
  color: var(--color-text-dark);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: 2px;
  transition: color var(--transition-fast);
}

.news-card__share button:hover {
  color: var(--color-accent);
}

/* Featured card (larger) */
.news-card--featured {
  grid-column: 1 / -1;
}

.news-card--featured .news-card__image {
  aspect-ratio: 21 / 9;
}

.news-card--featured .news-card__title {
  font-size: var(--text-3xl);
}

/* ----- Sidebar ----- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar__widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sidebar__widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar__widget-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Cifras widget */
.cifras__number {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.cifras__context {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.cifras__source {
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  font-style: italic;
}

/* Frases widget */
.frases__item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.frases__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.frases__quote {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.frases__quote::before {
  content: '\201C';
  color: var(--color-accent);
}

.frases__quote::after {
  content: '\201D';
  color: var(--color-accent);
}

.frases__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

.frases__author::before {
  content: '\2014 ';
  color: var(--color-accent);
}

/* ----- Article Page ----- */
.single-article {
  padding: var(--space-8) 0;
}

/* Featured Image at top of article */
.article-featured-image {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-featured-image .photo-credit {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-style: italic;
  letter-spacing: 0.5px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Article Container */
.article-container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

@media (max-width: 768px) {
  .article-container {
    padding: 0 var(--space-6);
  }
}

/* Article Header */
.article-header {
  margin-bottom: var(--space-8);
  text-align: left;
}

.article-category {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
}

.article-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-4xl);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.article-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.article-meta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.article-meta span {
  color: var(--color-text-muted);
}

.article-meta .separator {
  color: var(--color-primary);
  font-weight: 700;
}

/* Article Body */
.article-body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: #E0E0E0;
}

.article-body p {
  margin-bottom: var(--space-6);
}

.article-body p:first-of-type::first-letter {
  font-size: 3.5em;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  float: left;
  line-height: 0.9;
  margin-right: 12px;
  margin-top: 4px;
}

/* Article HR */
.article-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: var(--space-8) 0;
}

/* Article Disclaimer */
.article-disclaimer {
  background: rgba(212, 42, 42, 0.08);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-10);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-disclaimer p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

/* Source link */
.article-source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  margin-bottom: var(--space-6);
}

.article-source:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--color-accent);
}

/* Back to home */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-6);
  transition: var(--transition-base);
}

.article-back:hover {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .article-title {
    font-size: var(--text-2xl);
  }
  .article-subtitle {
    font-size: var(--text-lg);
  }
  .article-body {
    font-size: var(--text-base);
  }
  .article-body p:first-of-type::first-letter {
    font-size: 2.5em;
  }
  .article-featured-image {
    border-radius: 0;
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    max-width: calc(100% + var(--space-8));
  }
}

/* ----- Footer ----- */
.footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-16);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 360px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  font-size: var(--text-lg);
}

.footer__social a:hover {
  background: var(--color-primary);
  color: var(--color-text);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer__disclaimer {
  background: rgba(212, 42, 42, 0.08);
  border: 1px solid rgba(212, 42, 42, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  text-align: center;
}

.footer__disclaimer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.footer__disclaimer strong {
  color: var(--color-primary-light);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  margin: 0;
}

/* ----- 404 Page ----- */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.page-404__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(212, 42, 42, 0.3);
}

.page-404__title {
  font-size: var(--text-3xl);
  margin: var(--space-4) 0 var(--space-2);
}

.page-404__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

/* ----- Newsletter / Subscription ----- */
.newsletter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.newsletter__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.newsletter__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter__input::placeholder {
  color: var(--color-text-dark);
}

/* ----- Animations ----- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.1); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
}

/* ----- Responsive ----- */

/* Tablet */
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter__form {
    flex-direction: row;
  }

  .newsletter__input {
    flex: 1;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr var(--sidebar-width);
  }

  .hamburger {
    display: none;
  }

  .nav {
    display: flex;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-card--featured {
    grid-column: 1 / -1;
  }

  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .header__logo img {
    height: 38px;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .hero {
    min-height: 50vh;
  }

  .hero__content {
    padding: var(--space-8) 0;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__excerpt {
    font-size: var(--text-base);
  }

  .news-card--featured .news-card__title {
    font-size: var(--text-2xl);
  }

  .news-card__title {
    font-size: var(--text-lg);
  }

  .container {
    padding: 0 var(--space-4);
  }

  .footer {
    padding: var(--space-10) 0 var(--space-6);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    min-height: 40vh;
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .news-card__image {
    aspect-ratio: 16 / 9;
  }

  .news-card__body {
    padding: var(--space-4);
  }
}

/* Print */
@media print {
  .header,
  .footer,
  .sidebar {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__overlay {
    display: none;
  }

  .hero__content {
    color: #000;
  }

  body {
    background: #fff;
    color: #000;
  }

  .news-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
