/* ================================================================
   Meridian — Supplementary Components
   Extends style.css with new UI components, enhanced article styling,
   whitespace management, and micro-interactions.
   ================================================================ */


/* ================================================================
   1. SOCIAL HEADER SECTION
   Full-width follow bar with platform buttons
   ================================================================ */

.social-header {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.social-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.social-header__intro {
  max-width: 58%;
}

.social-header__intro h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.social-header__intro p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.social-header__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn--youtube   { background: #ff0000; }
.social-btn--twitter   { background: #000000; }
.social-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn--pinterest { background: #e60023; }
.social-btn--facebook  { background: #1877f2; }
.social-btn--tiktok    { background: #000000; }


/* ================================================================
   2. NEWSLETTER SECTION
   Red accent CTA with email capture
   ================================================================ */

.newsletter {
  background: var(--color-accent);
  color: #fff;
  width: 100%;
}

.newsletter__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.newsletter__heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
}

.newsletter__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.newsletter__form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.newsletter__input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border: none;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  min-width: 0;
}

.newsletter__input::placeholder {
  color: #999;
}

.newsletter__btn {
  background: var(--color-header);
  color: #fff;
  border: none;
  padding: 0.9rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.newsletter__btn:hover {
  background: #2d2d42;
}

.newsletter__privacy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}


/* ================================================================
   3. TRUST BADGES SECTION
   Social proof numbers bar
   ================================================================ */

.trust-badges {
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.trust-badges__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.trust-badge__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-badge__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.trust-badge__number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.trust-badge__label {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ================================================================
   4. PRODUCT CARD STYLING
   Auto-transforms h3-based product sections into visual cards
   ================================================================ */

/* Product heading as card header */
.post-content h3 {
  position: relative;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem 1rem 1.25rem;
  background: linear-gradient(135deg, var(--color-header) 0%, #2d2d48 100%);
  color: #fff;
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.15);
}

.post-content h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Specs list as feature card */
.post-content h3 + p,
.post-content h3 + p + ul,
.post-content h3 + ul {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 1rem 1.25rem;
  margin-top: 0;
  margin-bottom: 0;
}

.post-content h3 + p {
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0;
}

.post-content h3 + p + ul {
  border-top: 1px dashed var(--color-border-light);
  border-radius: 0;
  padding: 0.85rem 1.25rem 0.85rem 2.25rem;
  margin-top: 0;
  margin-bottom: 0;
}

.post-content h3 + ul {
  border-radius: 0;
  padding-left: 2.25rem;
}

/* Key Specifications label enhancement */
.post-content h3 + p strong {
  color: var(--color-accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Spec list items */
.post-content h3 + p + ul li,
.post-content h3 + ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.88rem;
  line-height: 1.5;
}

.post-content h3 + p + ul li:last-child,
.post-content h3 + ul li:last-child {
  border-bottom: none;
}

/* Review paragraph following specs — bottom of card */
.post-content h3 + p + ul + p,
.post-content h3 + ul + p {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 1rem 1.25rem 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}


/* ================================================================
   5. ENHANCED ARTICLE STYLING
   Better blockquotes, tables, code, captions, verdict boxes
   ================================================================ */

/* --- Decorative Blockquote --- */
.post-content blockquote {
  position: relative;
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.75rem 1.25rem 2.25rem;
  margin: 2rem 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: normal;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.post-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.15rem;
  left: 0.5rem;
  font-size: 3.5rem;
  font-family: Georgia, serif;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Enhanced Table --- */
.post-content table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin: 1.75rem 0;
}

.post-content tr:nth-child(even) {
  background: var(--color-bg);
}

.post-content tr {
  transition: background 0.15s ease;
}

.post-content tr:hover {
  background: var(--color-blue-light);
}

.post-content th {
  background: var(--color-header);
  color: #fff;
  position: relative;
}

.post-content th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

/* --- Code / Pre Blocks --- */
.post-content code {
  background: var(--color-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.86em;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--color-accent);
  border: 1px solid var(--color-border-light);
}

.post-content pre {
  background: var(--color-header);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.84rem;
  line-height: 1.65;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
  font-size: inherit;
}

/* --- Image Captions --- */
.post-content figure {
  margin: 1.75rem 0;
}

.post-content figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.post-content figcaption,
.post-content .image-caption {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

/* --- Quick Picks Ordered List --- */
.post-content h2 + ol,
.post-content h2 + p + ol {
  list-style: none;
  counter-reset: quickpick;
  margin-left: 0;
  padding-left: 0;
}

.post-content h2 + ol > li,
.post-content h2 + p + ol > li {
  counter-increment: quickpick;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3.5rem;
  margin-bottom: 0.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-content h2 + ol > li:hover,
.post-content h2 + p + ol > li:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.post-content h2 + ol > li::before,
.post-content h2 + p + ol > li::before {
  content: counter(quickpick);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 2rem;
  text-align: center;
}

/* --- Verdict / Final Recommendation Box --- */
.post-content h2[id*="final"],
.post-content h2[id*="verdict"],
.post-content h2[id*="recommendation"],
.post-content h2[id*="conclusion"] {
  background: linear-gradient(135deg, var(--color-green-bg) 0%, #e8f5e9 100%);
  border: 1px solid #c8e6c9;
  border-left: 5px solid var(--color-green);
  border-top: none;
  padding: 1.15rem 1.5rem 0.85rem;
  margin: 2.5rem 0 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  color: var(--color-text);
}

.post-content h2[id*="final"]::before,
.post-content h2[id*="verdict"]::before,
.post-content h2[id*="recommendation"]::before,
.post-content h2[id*="conclusion"]::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--color-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* Content following verdict heading */
.post-content h2[id*="final"] ~ p:first-of-type,
.post-content h2[id*="verdict"] ~ p:first-of-type,
.post-content h2[id*="recommendation"] ~ p:first-of-type,
.post-content h2[id*="conclusion"] ~ p:first-of-type {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}


/* ================================================================
   6. WHITESPACE FILLERS
   Dividers, spacing, subtle animations, backgrounds
   ================================================================ */

/* --- Content Divider --- */
.content-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto;
  max-width: var(--content-width);
  gap: 0.75rem;
}

.content-divider::before,
.content-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.content-divider::before {
  background: linear-gradient(90deg, transparent, var(--color-accent));
}

.content-divider::after {
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.content-divider__dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Section Intro --- */
.section-intro {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* --- Spacing Utilities --- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* --- Subtle Section Backgrounds --- */
.bg-light {
  background: var(--color-bg);
}

.bg-accent-light {
  background: var(--color-accent-light);
}

.bg-blue-light {
  background: var(--color-blue-light);
}

.bg-green-light {
  background: var(--color-green-bg);
}

.bg-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
}

.bg-gradient-subtle {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-card-bg) 100%);
}

/* --- Card Hover Micro-Animations --- */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card,
.category-card,
.hero-card {
  animation: cardFadeUp 0.4s ease both;
}

.article-card:nth-child(2) { animation-delay: 0.05s; }
.article-card:nth-child(3) { animation-delay: 0.1s; }
.article-card:nth-child(4) { animation-delay: 0.15s; }
.article-card:nth-child(5) { animation-delay: 0.2s; }
.article-card:nth-child(6) { animation-delay: 0.25s; }

.category-card:nth-child(2) { animation-delay: 0.05s; }
.category-card:nth-child(3) { animation-delay: 0.1s; }
.category-card:nth-child(4) { animation-delay: 0.15s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .article-card,
  .category-card,
  .hero-card {
    animation: none;
  }
}


/* ================================================================
   7. BACK TO TOP BUTTON
   Fixed bottom-right circle, appears on scroll via JS
   ================================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Fallback arrow using CSS */
.back-to-top::after {
  content: '\2191';
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.back-to-top svg + .back-to-top::after {
  display: none;
}


/* ================================================================
   8. READING PROGRESS BAR
   Fixed top bar filling as user scrolls article
   ================================================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff6b6b);
  z-index: 1000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

.reading-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: inherit;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
}


/* ================================================================
   9. AMAZON AFFILIATE CTA ENHANCEMENT
   Prominent "Check Price on Amazon" buttons
   ================================================================ */

.amazon-cta,
.post-content a[href*="amazon.com"][href*="/dp/"],
.post-content a[href*="amazon.com"][href*="tag="],
.post-content a[href*="amzn.to"] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #ffad33 0%, #ff9900 50%, #e68a00 100%);
  color: #111 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  border: 1px solid #cc8800;
  box-shadow: 0 2px 6px rgba(255, 153, 0, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.3;
  margin: 0.25rem 0;
}

.amazon-cta:hover,
.post-content a[href*="amazon.com"][href*="/dp/"]:hover,
.post-content a[href*="amazon.com"][href*="tag="]:hover,
.post-content a[href*="amzn.to"]:hover {
  background: linear-gradient(180deg, #ffc04d 0%, #ffad33 50%, #ff9900 100%) !important;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
  transform: translateY(-1px);
}

.amazon-cta:active,
.post-content a[href*="amazon.com"][href*="/dp/"]:active,
.post-content a[href*="amazon.com"][href*="tag="]:active,
.post-content a[href*="amzn.to"]:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(255, 153, 0, 0.2);
}

/* Cart icon via pseudo-element */
.amazon-cta::before,
.post-content a[href*="amazon.com"][href*="/dp/"]::before,
.post-content a[href*="amazon.com"][href*="tag="]::before,
.post-content a[href*="amzn.to"]::before {
  content: '\1F6D2';
  font-size: 1rem;
  line-height: 1;
}

/* Ensure Amazon links inside product cards look like block buttons */
.post-content h3 ~ p a[href*="amazon.com"],
.post-content h3 ~ p a[href*="amzn.to"] {
  display: inline-flex;
  margin-top: 0.75rem;
}


/* ================================================================
   10. DARK MODE SUPPORT
   Respects prefers-color-scheme for new components
   ================================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121218;
    --color-text: #e4e4e8;
    --color-text-secondary: #a8a8b8;
    --color-muted: #8888a0;
    --color-card-bg: #1c1c28;
    --color-border: #2a2a3c;
    --color-border-light: #222234;
    --color-header: #0e0e16;
    --color-accent-light: #2d1215;
    --color-blue-light: #111827;
    --color-green-bg: #0d1f12;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  /* Social header */
  .social-header {
    background: var(--color-card-bg);
    border-color: var(--color-border);
  }

  /* Newsletter — keep accent bg, darken text shadows */
  .newsletter__input {
    background: #1c1c28;
    color: #e4e4e8;
  }

  .newsletter__input::placeholder {
    color: #666;
  }

  /* Trust badges */
  .trust-badges {
    background: var(--color-card-bg);
    border-color: var(--color-border);
  }

  .trust-badge__icon {
    background: var(--color-accent-light);
  }

  /* Product cards */
  .post-content h3 {
    background: linear-gradient(135deg, #0e0e16 0%, #1a1a30 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .post-content h3 + p,
  .post-content h3 + p + ul,
  .post-content h3 + ul,
  .post-content h3 + p + ul + p,
  .post-content h3 + ul + p {
    background: var(--color-card-bg);
    border-color: var(--color-border);
  }

  /* Code blocks */
  .post-content code {
    background: #1c1c28;
    border-color: var(--color-border);
    color: #ff8a8a;
  }

  .post-content pre {
    background: #0e0e16;
    border-color: var(--color-border);
  }

  /* Blockquote */
  .post-content blockquote {
    background: var(--color-accent-light);
  }

  /* Quick picks */
  .post-content h2 + ol > li,
  .post-content h2 + p + ol > li {
    background: var(--color-card-bg);
    border-color: var(--color-border);
  }

  /* Verdict box */
  .post-content h2[id*="final"],
  .post-content h2[id*="verdict"],
  .post-content h2[id*="recommendation"],
  .post-content h2[id*="conclusion"] {
    background: linear-gradient(135deg, #0d1f12 0%, #132916 100%);
    border-color: #1b5e20;
  }

  /* Back to top */
  .back-to-top {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  }

  /* Amazon CTA — keep the orange, it pops on dark */
  .amazon-cta,
  .post-content a[href*="amazon.com"][href*="/dp/"],
  .post-content a[href*="amazon.com"][href*="tag="],
  .post-content a[href*="amzn.to"] {
    border-color: #b37700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  /* Reading progress — keep as-is, red on dark looks great */

  /* Background patterns */
  .bg-pattern {
    background-image:
      radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
  }

  .bg-gradient-subtle {
    background: linear-gradient(180deg, var(--color-bg) 0%, #161622 100%);
  }
}


/* ================================================================
   11. RESPONSIVE OVERRIDES
   Mobile-friendly adjustments for all new components
   ================================================================ */

/* ---- Tablet: 1024px ---- */
@media (max-width: 1024px) {
  .social-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .social-header__intro {
    max-width: 100%;
  }

  .social-header__platforms {
    justify-content: flex-start;
  }

  .trust-badges__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .newsletter__heading {
    font-size: 1.5rem;
  }
}

/* ---- Mobile: 768px ---- */
@media (max-width: 768px) {
  .social-header__inner {
    padding: 1rem;
  }

  .social-header__intro h3 {
    font-size: 1rem;
  }

  .social-header__platforms {
    gap: 0.4rem;
  }

  .social-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
  }

  .newsletter__inner {
    padding: 2rem 1rem;
  }

  .newsletter__heading {
    font-size: 1.3rem;
  }

  .newsletter__text {
    font-size: 0.88rem;
  }

  .newsletter__form {
    flex-direction: column;
    border-radius: var(--radius);
    overflow: visible;
  }

  .newsletter__input {
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .newsletter__btn {
    border-radius: var(--radius);
    padding: 0.85rem 1.5rem;
  }

  .trust-badges__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }

  .trust-badge__number {
    font-size: 1.3rem;
  }

  .trust-badge__icon {
    width: 40px;
    height: 40px;
  }

  .trust-badge__icon svg {
    width: 18px;
    height: 18px;
  }

  /* Product cards */
  .post-content h3 {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    margin-top: 2rem;
  }

  .post-content h3 + p,
  .post-content h3 + p + ul,
  .post-content h3 + ul,
  .post-content h3 + p + ul + p,
  .post-content h3 + ul + p {
    padding: 0.75rem 1rem;
  }

  /* Blockquote */
  .post-content blockquote {
    padding: 1.25rem 1.25rem 1rem 1.75rem;
    margin: 1.5rem 0;
  }

  .post-content blockquote::before {
    font-size: 2.5rem;
  }

  /* Quick picks */
  .post-content h2 + ol > li,
  .post-content h2 + p + ol > li {
    padding-left: 3rem;
  }

  /* Verdict */
  .post-content h2[id*="final"],
  .post-content h2[id*="verdict"],
  .post-content h2[id*="recommendation"],
  .post-content h2[id*="conclusion"] {
    padding: 1rem 1rem 0.75rem;
  }

  /* Amazon CTA */
  .amazon-cta,
  .post-content a[href*="amazon.com"][href*="/dp/"],
  .post-content a[href*="amazon.com"][href*="tag="],
  .post-content a[href*="amzn.to"] {
    font-size: 0.82rem;
    padding: 0.55rem 1.1rem;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }

  /* Content divider */
  .content-divider {
    margin: 2rem auto;
  }
}

/* ---- Small Phone: 480px ---- */
@media (max-width: 480px) {
  .social-header__intro h3 {
    font-size: 0.92rem;
  }

  .social-header__intro p {
    font-size: 0.82rem;
  }

  .social-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
  }

  .social-btn svg {
    width: 14px;
    height: 14px;
  }

  .newsletter__heading {
    font-size: 1.15rem;
  }

  .newsletter__text {
    font-size: 0.82rem;
  }

  .newsletter__input {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .newsletter__btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
  }

  .trust-badges__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
  }

  .trust-badge {
    padding: 0.5rem 0.25rem;
  }

  .trust-badge__number {
    font-size: 1.15rem;
  }

  .trust-badge__label {
    font-size: 0.68rem;
  }

  /* Product cards tighter on small screens */
  .post-content h3 {
    font-size: 0.92rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 1.75rem;
  }

  .post-content h3 + p,
  .post-content h3 + p + ul,
  .post-content h3 + ul,
  .post-content h3 + p + ul + p,
  .post-content h3 + ul + p {
    padding: 0.6rem 0.85rem;
  }

  /* Quick picks */
  .post-content h2 + ol > li,
  .post-content h2 + p + ol > li {
    padding: 0.65rem 0.85rem 0.65rem 2.75rem;
  }

  .post-content h2 + ol > li::before,
  .post-content h2 + p + ol > li::before {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.75rem;
    left: 0.6rem;
    line-height: 1.6rem;
  }

  /* Blockquote */
  .post-content blockquote {
    padding: 1rem 1rem 0.85rem 1.5rem;
  }

  .post-content blockquote::before {
    font-size: 2rem;
    left: 0.3rem;
  }

  /* Amazon CTA full-width on small phones */
  .amazon-cta,
  .post-content a[href*="amazon.com"][href*="/dp/"],
  .post-content a[href*="amazon.com"][href*="tag="],
  .post-content a[href*="amzn.to"] {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  .back-to-top::after {
    font-size: 1.05rem;
  }

  /* Reading progress thinner */
  .reading-progress {
    height: 2px;
  }
}


/* ================================================================
   12. PRINT STYLES
   Clean output for printing
   ================================================================ */

@media print {
  .social-header,
  .newsletter,
  .trust-badges,
  .back-to-top,
  .reading-progress,
  .content-divider {
    display: none !important;
  }

  .post-content h3 {
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
    border-left: 3px solid #333;
    padding-left: 0.5rem;
  }

  .amazon-cta,
  .post-content a[href*="amazon.com"],
  .post-content a[href*="amzn.to"] {
    background: none !important;
    border: 1px solid #999 !important;
    box-shadow: none !important;
    color: #000 !important;
    padding: 0.25rem 0.5rem !important;
  }
}


/* ================================================================
   12. TOP BAR ENHANCEMENTS — Logo + Social Icons
   ================================================================ */

.site-logo {
  display: block;
  height: 34px;
  width: auto;
}

.social-icon--youtube { background: #FF0000; }
.social-icon--x { background: #000; }
.social-icon--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-icon--pin { background: #E60023; }
.social-icon--fb { background: #1877F2; }
.social-icon--tiktok { background: #000; }

/* ================================================================
   13. PRODUCT IMAGES — Category-specific styling
   ================================================================ */

.product-img-wrap {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.product-img-wrap:hover img {
  transform: scale(1.03);
}
.product-img-credit {
  font-size: 0.68rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.3rem;
  background: var(--color-bg);
}

/* Category card images — use downloaded product photos */
.category-card__image-wrap {
  position: relative;
  background: linear-gradient(135deg, var(--color-header) 0%, #2d2d4e 100%);
}
.category-card__image-wrap img {
  opacity: 0.92;
}

/* ================================================================
   14. ENHANCED LIST PAGE STYLING
   ================================================================ */

.list-page .article-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.list-page .article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.list-page .article-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.list-page .article-card h2 a {
  color: var(--color-text);
  text-decoration: none;
}
.list-page .article-card h2 a:hover {
  color: var(--color-accent);
}
.list-page .article-card .meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.list-page .article-card p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* ================================================================
   15. SOCIAL HEADER — Inline Overrides (extracted from partial)
   ================================================================ */

.social-header {
  margin-bottom: 2rem;
}
.social-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.social-header__intro {
  flex: 1;
  min-width: 0;
}
.social-header__text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}
.social-header__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.social-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.social-header__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.social-header__icon {
  flex-shrink: 0;
}
.social-header__btn--youtube { background: #FF0000; }
.social-header__btn--twitter { background: #000; }
.social-header__btn--instagram { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); }
.social-header__btn--pinterest { background: #E60023; }
.social-header__btn--facebook { background: #1877F2; }
.social-header__btn--tiktok { background: #000; }

@media (max-width: 768px) {
  .social-header__inner {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .social-header__buttons {
    justify-content: center;
  }
}


/* ================================================================
   16. NEWSLETTER — Inline Overrides (extracted from partial)
   ================================================================ */

.newsletter {
  background: var(--color-accent);
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.newsletter__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.newsletter__content {
  flex: 1;
  min-width: 0;
}
.newsletter__heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.newsletter__text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}
.newsletter__form {
  flex-shrink: 0;
  width: 420px;
}
.newsletter__form-row {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.newsletter__input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
  color: var(--color-text);
  min-width: 0;
}
.newsletter__input::placeholder {
  color: var(--color-muted);
}
.newsletter__btn {
  padding: 0.85rem 1.5rem;
  background: var(--color-header);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.newsletter__btn:hover {
  background: #111122;
}
.newsletter__privacy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.6rem;
  text-align: center;
}

@media (max-width: 768px) {
  .newsletter__inner {
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
    text-align: center;
  }
  .newsletter__form {
    width: 100%;
  }
  .newsletter__heading {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .newsletter__form-row {
    flex-direction: column;
    border-radius: 0;
  }
  .newsletter__input {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .newsletter__btn {
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.9rem;
  }
}


/* ================================================================
   17. TRUST BADGES — Inline Overrides (extracted from partial)
   ================================================================ */

.trust-badges {
  margin-bottom: 2rem;
}
.trust-badges__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-badge {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.trust-badge__icon {
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  line-height: 0;
}
.trust-badge__number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.trust-badge__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

@media (max-width: 480px) {
  .trust-badges__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .trust-badge {
    padding: 1rem 0.75rem;
  }
  .trust-badge__number {
    font-size: 1.2rem;
  }
}
