/* ==========================================================================
   YouTube Safety Guide — Main Stylesheet
   Structural scaffold — SafeWise-style comparison/review site
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --color-celeste: #87CEEB;
  --color-navy: #1a1a1a;
  --color-charcoal: #2c3e50;
  --color-white: #ffffff;
  --color-gray-light: #f8f9fa;
  --color-gray-lighter: #f5f5f5;
  --color-gray-border: #e5e7eb;
  --color-gray-muted: #6b7280;
  --color-gray-muted-2: #7a7a7a;
  --color-pink-soft: #fce4ec;
  --color-purple-soft: #e1d5f7;
  --color-green: #4caf50;
  --color-green-bg: #f0fdf4;
  --color-red: #f44336;
  --color-red-bg: #fef2f2;
  --color-gold: #ffc107;
  --color-accent: #2563eb;
  --color-accent-2: #2563eb;
  --color-accent-3: #1e3a8a;
  --color-announcement-bg: #e8f5e9;
  --color-announcement-text: #2e7d32;
  --color-disclosure-bg: #fffde7;
  --color-disclosure-border: #e0e0e0;

  /* Typography */
  --font-main: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --fs-h1: 2.5rem;
  --fs-h2: 2rem;
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-body: 1.6;

  /* Spacing (8px base grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --header-height-full: 120px;
  --header-height-shrunk: 64px;
  --sidebar-width: 300px;
  --content-max-width: 1200px;
  --breakpoint-mobile: 1024px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-navy);
  background: var(--color-white);
  font-size: var(--fs-body);
}

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

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

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); color: var(--color-navy); }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.25; margin-bottom: var(--space-md); }
h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--space-sm); }
h4 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: var(--space-xs); }
small, .text-small { font-size: var(--fs-small); }

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

.text-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.visually-hidden, .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.rainbow-divider {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #f44336, #ffc107, #4caf50, #2563eb, #87CEEB);
}

/* ---------- Reading Progress Bar ---------- */
.reading-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent));
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ---------- Announcement / Top Bar ---------- */
.announcement-bar {
  height: 36px;
  background: var(--color-announcement-bg);
  color: var(--color-announcement-text);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
}

.announcement-bar .close-announcement {
  position: absolute;
  right: var(--space-md);
  color: var(--color-announcement-text);
  font-size: 16px;
  line-height: 1;
}

.top-bar {
  background: var(--color-gray-light);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-md);
}

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

/* ---------- Header ---------- */
.site-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
  transition: padding 0.2s ease;
}

.site-header-wrapper.is-shrunk .site-header {
  padding: var(--space-xs) var(--space-md);
}

.site-header-wrapper.is-shrunk {
  box-shadow: var(--shadow-header);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo img { height: 32px; }

.main-nav ul {
  display: flex;
  gap: var(--space-lg);
  font-weight: 500;
}

.main-nav a { padding: var(--space-xs) 0; }
.main-nav a:hover { color: var(--color-accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sign-in-link {
  font-size: 13px;
  color: var(--color-gray-muted);
}

.search-toggle {
  font-size: 1.1rem;
}

.search-box {
  display: none;
  width: 300px;
}
.search-box.is-open { display: block; }
.search-box input {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.4rem;
}

/* Mega menu */
.has-mega-menu { position: relative; }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  max-width: 320px;
  min-width: 220px;
  padding: var(--space-sm);
  z-index: 50;
}
.has-mega-menu:hover .mega-menu { display: block; }
.mega-menu li { padding: var(--space-xs) 0; }

/* Mobile nav drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1200;
}
.mobile-nav-overlay.is-open { display: block; }

.mobile-nav-drawer {
  position: fixed;
  top: 0; right: -300px;
  width: 280px;
  height: 100%;
  background: var(--color-white);
  z-index: 1300;
  transition: right 0.25s ease;
  padding: var(--space-md);
  overflow-y: auto;
}
.mobile-nav-drawer.is-open { right: 0; }
.mobile-nav-drawer .close-drawer { align-self: flex-end; font-size: 1.4rem; margin-bottom: var(--space-md); }
.mobile-nav-drawer nav ul li { padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-gray-border); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: var(--space-sm) 0;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; font-size: var(--fs-small); color: var(--color-gray-muted-2); }
.breadcrumbs li + li::before { content: '\203A'; margin: 0 8px; }
.breadcrumbs a { color: var(--color-accent); }
.breadcrumbs li[aria-current="page"] { color: var(--color-gray-muted-2); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-gray-light);
  text-align: center;
}
.hero h1 { max-width: 800px; margin: 0 auto var(--space-sm); }
.hero .tagline { max-width: 600px; margin: 0 auto var(--space-md); color: var(--color-gray-muted); font-size: 1.125rem; }

/* ---------- Featured-on / Trust Stats ---------- */
.featured-on {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.featured-on-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  opacity: 0.6;
  margin-top: var(--space-md);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.stat-badge { text-align: center; }
.stat-badge .number { display: block; font-size: 2rem; font-weight: 700; color: var(--color-accent-2); }
.stat-badge .label { font-size: var(--fs-small); color: var(--color-gray-muted); }

/* ---------- Category Icons ---------- */
.category-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}
.category-icon .icon-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--color-celeste);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xs);
  font-size: 1.75rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.article-card { overflow: hidden; padding: 0; }
.article-card .thumbnail { width: 100%; height: 180px; object-fit: cover; background: var(--color-gray-lighter); }
.article-card .article-content { padding: var(--space-md); }
.category-badge {
  display: inline-block;
  background: var(--color-purple-soft);
  color: var(--color-charcoal);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}
.article-meta { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--fs-small); color: var(--color-gray-muted); margin-top: var(--space-sm); }
.article-meta .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--color-gray-border); }

/* Product / Quick Pick Card */
.product-card.quick-pick {
  position: relative;
  border: 2px solid var(--color-accent-2);
  text-align: center;
}
.product-card .badge {
  position: absolute;
  top: -12px; right: 12px;
  background: var(--color-accent-2);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.product-logo { height: 40px; margin: 0 auto var(--space-sm); }
.rating { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-bottom: var(--space-xs); }
.rating .score { font-weight: 600; color: var(--color-gold); }
.key-features { text-align: left; margin: var(--space-sm) 0; }
.key-features li { padding: 4px 0; font-size: var(--fs-small); }

/* Expert card */
.expert-grid, .expert-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.expert-card { text-align: center; }
.expert-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto var(--space-sm); background: var(--color-gray-border); }
.expert-card .title { color: var(--color-gray-muted); font-size: var(--fs-small); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 32px; border-radius: var(--radius-sm); font-weight: 600; text-align: center; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-3) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { color: var(--color-accent-2); border-bottom: 2px solid transparent; font-weight: 500; }
.btn-secondary:hover { border-bottom-color: var(--color-accent-2); }
.btn-outline { border: 1px solid var(--color-accent-2); color: var(--color-accent-2); padding: 10px 28px; border-radius: var(--radius-sm); }
.btn-sm { padding: 6px 16px; font-size: var(--fs-small); border-radius: var(--radius-sm); background: var(--color-accent-2); color: white; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--color-gray-light);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}
.newsletter-form .form-group { display: flex; gap: var(--space-xs); max-width: 420px; margin: var(--space-sm) auto; }
.newsletter-form input {
  flex: 1;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
}
.newsletter-form .disclaimer { font-size: 12px; color: var(--color-gray-muted); margin-top: var(--space-xs); }

/* Newsletter popup modal */
.newsletter-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
  align-items: center;
  justify-content: center;
}
.newsletter-popup-overlay.is-visible { display: flex; }
.newsletter-popup-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 480px;
  max-width: 90vw;
  text-align: center;
  position: relative;
}
.newsletter-popup-card .popup-close {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  font-size: 1.2rem;
}
.newsletter-popup-card .no-thanks {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-gray-muted);
  text-decoration: underline;
}

/* ---------- Sidebar ---------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-xl);
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-md);
  align-items: start;
}

.sidebar {
  width: 100%;
}
.sidebar.is-sticky {
  position: sticky;
  top: 80px;
}
.sidebar-widget {
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.sidebar-widget h4 { margin-bottom: var(--space-sm); }
.sidebar-widget ol { list-style: decimal; padding-left: var(--space-md); }
.sidebar-widget ol li { padding: 4px 0; font-size: var(--fs-small); }
.ad-placeholder {
  width: 100%;
  max-width: 300px;
  height: 250px;
  background: var(--color-gray-lighter);
  border: 1px dashed var(--color-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  color: var(--color-gray-muted);
  margin: 0 auto;
}

/* ---------- Article Content ---------- */
.article-content-area { min-width: 0; }

.byline-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-gray-muted);
  margin: var(--space-sm) 0;
  flex-wrap: wrap;
}
.byline-row .updated { font-weight: 600; color: var(--color-navy); }

.disclosure-box {
  border: 1px solid var(--color-disclosure-border);
  background: var(--color-disclosure-bg);
  font-size: var(--fs-small);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}
.disclosure-box a { color: var(--color-accent); text-decoration: underline; }

/* Table of Contents */
.toc-box {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}
.toc-box .toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
.toc-box ol { list-style: decimal; padding-left: var(--space-md); margin-top: var(--space-sm); }
.toc-box.is-collapsed ol { display: none; }
.toc-box a { color: var(--color-accent); }

/* Pros / Cons */
.pros-cons-wrapper, .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}
.pros { background: var(--color-green-bg); border-left: 4px solid var(--color-green); padding: var(--space-md); border-radius: var(--radius-sm); }
.cons { background: var(--color-red-bg); border-left: 4px solid var(--color-red); padding: var(--space-md); border-radius: var(--radius-sm); }
.pros h3::before, .pros h4::before { content: '\2713'; color: var(--color-green); margin-right: 8px; }
.cons h3::before, .cons h4::before { content: '\2717'; color: var(--color-red); margin-right: 8px; }
.pros ul li, .cons ul li { padding: 4px 0; }

/* Score card */
.score-card { display: flex; gap: var(--space-md); align-items: center; margin: var(--space-md) 0; flex-wrap: wrap; }
.score-visual { position: relative; width: 100px; height: 100px; }
.score-number { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.score-breakdown { flex: 1; min-width: 220px; }
.score-item { display: grid; grid-template-columns: 120px 1fr 50px; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.score-bar { height: 8px; background: var(--color-gray-border); border-radius: 999px; position: relative; overflow: hidden; }
.score-bar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--score, 50%); background: var(--color-gold); }

/* ---------- Comparison Table ---------- */
.comparison-table-wrapper { overflow-x: auto; margin: var(--space-md) 0; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.comparison-table th, .comparison-table td {
  padding: var(--space-sm);
  border: 1px solid var(--color-gray-border);
  text-align: left;
  font-size: var(--fs-small);
}
.comparison-table th { background: var(--color-gray-light); font-weight: 700; }
.comparison-table .logo-small { height: 24px; }
.comparison-table .btn-sm { display: inline-block; }

/* ---------- FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--color-gray-border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-weight: 600;
  text-align: left;
}
.faq-answer { padding: 0 0 var(--space-sm); color: var(--color-gray-muted); }
.faq-answer[hidden] { display: none; }
.faq-question .chevron { transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* ---------- Methodology Criteria Grid ---------- */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}
.criterion { text-align: center; padding: var(--space-md); }
.criterion .icon { font-size: 2rem; margin-bottom: var(--space-xs); }

/* ---------- ItemList (Best-Of) ---------- */
.itemlist { counter-reset: itemlist; }
.itemlist-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-gray-border);
  align-items: start;
}
.itemlist-entry .rank-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-2);
}

/* ---------- Related Articles ---------- */
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

/* ---------- Floating Share Buttons ---------- */
.share-buttons-floating {
  position: fixed;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 500;
}
.share-buttons-floating .share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-gray-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.share-buttons-floating .share-count {
  text-align: center;
  font-size: 11px;
  color: var(--color-gray-muted);
}

.share-buttons-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--color-gray-border);
  justify-content: space-around;
  padding: var(--space-xs);
  z-index: 900;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 800;
}
.back-to-top.is-visible { display: flex; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  z-index: 1300;
  flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner .cookie-actions { display: flex; gap: var(--space-sm); align-items: center; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
}
.pagination .current { background: var(--color-accent-2); color: white; border-color: var(--color-accent-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-charcoal); color: #cbd5e1; margin-top: var(--space-3xl); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top .logo { color: white; }
.footer-newsletter form { display: flex; gap: var(--space-xs); }
.footer-newsletter input { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); border: none; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.footer-columns h4 { color: white; margin-bottom: var(--space-sm); }
.footer-columns li { padding: 4px 0; }
.footer-columns a { color: #cbd5e1; }
.footer-columns a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-md);
  font-size: var(--fs-small);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom .social-icons { display: flex; gap: var(--space-sm); align-items: center; }
.footer-bottom .social-icons a { display: inline-flex; }
.footer-bottom .social-icons img { width: 20px; height: 20px; opacity: 0.85; filter: grayscale(1) brightness(2.2); transition: filter 0.15s, opacity 0.15s; }
.footer-bottom .social-icons a:hover img { opacity: 1; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav, .header-actions .search-box, .sign-in-link { display: none; }
  .mobile-menu-toggle { display: block; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar.is-sticky { position: static; }
  .pros-cons-wrapper, .pros-cons { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .share-buttons-floating { display: none; }
  .share-buttons-mobile-bar { display: flex; }
}

@media (max-width: 640px) {
  .footer-columns { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .score-item { grid-template-columns: 90px 1fr 40px; }
}

/* ---------- Print ---------- */
@media print {
  header, footer, .sidebar, .share-buttons-floating, .share-buttons-mobile-bar,
  .cookie-banner, .newsletter-popup-overlay, .back-to-top, .reading-progress-bar,
  .related-articles-grid, .announcement-bar { display: none; }
  .article-content-area { max-width: 100%; margin: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
