/* ============================================================
   BestFitPicks — Shared Stylesheet
   Dark-themed Amazon Affiliate Site · Health & Fitness
   ============================================================ */

/* --- 0. CSS Variables ------------------------------------ */
:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --surface-3: #282828;
  --text: #e8e6e1;
  --text-muted: #8a8780;
  --text-dim: #5a5852;
  --accent: #ff6b2b;
  --accent-glow: rgba(255, 107, 43, 0.15);
  --green: #2dd881;
  --green-glow: rgba(45, 216, 129, 0.12);
  --yellow: #fbbf24;
  --red: #ef4444;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- 2. Typography --------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: 1rem;
}

strong { color: var(--text); font-weight: 600; }

small { font-size: 0.8125rem; color: var(--text-dim); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }

.bg-surface   { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-surface-3 { background: var(--surface-3); }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm  { gap: 0.5rem; }
.gap-md  { gap: 1rem; }
.gap-lg  { gap: 1.5rem; }
.gap-xl  { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent);
}

.badge--green {
  background: var(--green-glow);
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #e85a1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --- 4. Container & Section Headers ---------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* --- 5. Navigation --------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.35s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  padding: 0.5rem 1.15rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: #e85a1e;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 6. Hero Section ------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.35em 0.8em;
  background: var(--accent-glow);
  border-radius: 6px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* --- 7. Card Grids --------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--yellow);
  font-size: 0.85rem;
}

/* Pick cards (top-pick highlight) */
.card--pick {
  border-color: var(--accent);
  position: relative;
}

.card--pick::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-glow) 0%, transparent 40%);
  pointer-events: none;
}

/* --- 8. Comparison Tables -------------------------------- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--surface-2);
}

.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

.comparison-table tbody tr {
  background: var(--surface);
  transition: background 0.2s;
}

.comparison-table tbody tr:hover {
  background: var(--surface-2);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .product-name {
  color: var(--text);
  font-weight: 600;
}

.comparison-table .check {
  color: var(--green);
}

.comparison-table .cross {
  color: var(--red);
}

.comparison-table .highlight-row {
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
}

/* --- 9. Review Article Layout ---------------------------- */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.review-main {
  min-width: 0;
}

.review-main h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.review-main h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.review-main p {
  margin-bottom: 1.25rem;
  max-width: none;
}

.review-main ul,
.review-main ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}

.review-main ol {
  list-style: decimal;
}

.review-main li {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.review-main img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.review-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- 10. Sidebar Widgets --------------------------------- */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Editor's Choice */
.editors-choice-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.editors-choice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.editors-choice-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-dim);
  overflow: hidden;
}

.editors-choice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editors-choice-info h4 {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.editors-choice-info span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Newsletter widget */
.newsletter-widget p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.newsletter-widget input[type="email"]:focus {
  border-color: var(--accent);
}

.newsletter-widget .btn {
  width: 100%;
}

/* Categories widget */
.category-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.category-list .count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- 11. Product Review Cards (pros/cons) ---------------- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.product-card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.product-card-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
}

.product-card-score--high {
  background: var(--green-glow);
  color: var(--green);
  border: 2px solid var(--green);
}

.product-card-score--mid {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

.product-card-score--low {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  border: 2px solid var(--red);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pros-list,
.cons-list {
  font-size: 0.85rem;
}

.pros-list h5,
.cons-list h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.pros-list h5 { color: var(--green); }
.cons-list h5 { color: var(--red); }

.pros-list li,
.cons-list li {
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.45;
}

.pros-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.cons-list li::before {
  content: '\2212';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

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

/* --- 12. Blog Grid --------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

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

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* --- 13. Breadcrumbs ------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding: 1rem 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.breadcrumb .separator {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.breadcrumb .current {
  color: var(--text);
}

/* --- 14. Table of Contents ------------------------------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.toc ol {
  counter-reset: toc-counter;
  padding-left: 0;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 0.15rem;
}

.toc li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.2s;
}

.toc li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  min-width: 1.4em;
}

.toc li a:hover,
.toc li a.active {
  background: var(--surface-2);
  color: var(--accent);
}

.toc li a.active::before {
  color: var(--accent);
}

/* --- 15. Product Detail Cards (guide pages) -------------- */
.product-review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s;
}

.product-review-card:hover {
  border-color: var(--border-hover);
}

.product-review-card-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.product-review-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  overflow: hidden;
}

.product-review-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-review-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-review-card-rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.product-review-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-review-card-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.product-review-card-stars .empty {
  color: var(--surface-3);
}

.product-review-card-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.product-review-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-review-card-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.product-review-card-verdict {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.product-review-card-verdict h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-review-card-verdict p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.product-review-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.product-review-card-cta:hover {
  background: #e85a1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

/* --- 16. Trust Bar --------------------------------------- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1rem;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.trust-item span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- 17. Footer ------------------------------------------ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* --- 18. Newsletter Section ------------------------------ */
.newsletter-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-section .section-label,
.newsletter-section .section-title {
  position: relative;
}

.newsletter-section p {
  margin: 0 auto 2rem;
  text-align: center;
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-dim);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

.newsletter-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  position: relative;
}

/* --- 19. Scroll Animations ------------------------------- */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50%      { box-shadow: 0 0 40px var(--accent-glow); }
}

/* --- 20. Grain Overlay ----------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- 21. Guide Layout ------------------------------------ */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.guide-layout > .guide-main {
  min-width: 0;
  max-width: 780px;
}

.guide-layout > .guide-sidebar {
  position: sticky;
  top: 5rem;
}

.guide-main h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.guide-main h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.guide-main h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.guide-main p {
  max-width: none;
  margin-bottom: 1.25rem;
}

.guide-main ul,
.guide-main ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.guide-main ul { list-style: disc; }
.guide-main ol { list-style: decimal; }

.guide-main li {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* --- 22. Inline Product Recommendation ------------------- */
.product-inline {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  transition: border-color 0.3s;
}

.product-inline:hover {
  border-color: var(--border-hover);
}

.product-inline-img {
  width: 100px;
  height: 100px;
  background: var(--surface-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-inline-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-inline-info h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product-inline-info .product-inline-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--yellow);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.product-inline-info p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.product-inline-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.product-inline-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
}

/* --- 23. Rating Bars ------------------------------------- */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.rating-bar-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-width: 110px;
  flex-shrink: 0;
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.8s ease;
}

.rating-bar-fill--green { background: var(--green); }
.rating-bar-fill--yellow { background: var(--yellow); }
.rating-bar-fill--red { background: var(--red); }

.rating-bar-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 2.5em;
  text-align: right;
}

/* --- 24. Verdict Boxes ----------------------------------- */
.verdict-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.verdict-box-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verdict-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.verdict-box p:last-child {
  margin-bottom: 0;
}

.verdict-box-score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green);
  margin-top: 0.5rem;
}

.verdict-box-score span {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.verdict-box--positive { border-left-color: var(--green); }
.verdict-box--positive .verdict-box-title { color: var(--green); }

.verdict-box--negative { border-left-color: var(--red); }
.verdict-box--negative .verdict-box-title { color: var(--red); }

.verdict-box--neutral { border-left-color: var(--yellow); }
.verdict-box--neutral .verdict-box-title { color: var(--yellow); }

/* --- 25. FAQ Accordion ----------------------------------- */
.faq-section {
  max-width: 780px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: '\2212';
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer-inner p {
  margin-bottom: 0.75rem;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* --- 26. Responsive Breakpoints -------------------------- */
/* ---- 1024px ---- */
@media (max-width: 1024px) {
  .review-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }

  .guide-layout {
    grid-template-columns: 1fr 240px;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .product-review-card-top {
    grid-template-columns: 180px 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav-links.show {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-sidebar {
    position: static;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-layout > .guide-sidebar {
    position: static;
    order: -1;
  }

  .product-review-card-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-review-card-img {
    max-width: 240px;
    margin: 0 auto;
  }

  .product-review-card-columns {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .product-inline {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .product-inline-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .trust-bar .container {
    gap: 1.5rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }

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

  .newsletter-form .btn {
    width: 100%;
  }

  section {
    padding: 3.5rem 0;
  }
}

/* ---- 480px ---- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .card-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

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

  .product-inline-img {
    margin: 0 auto;
  }

  .product-inline-cta {
    align-items: center;
  }

  .trust-bar .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .trust-item {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 2.5rem 0;
  }
}

/* --- 25. Blog Article Page -------------------------------- */
.breadcrumb-current {
  color: var(--text);
}

.article-header {
  padding: 6rem 0 2rem;
  text-align: center;
}

.article-category {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.article-meta span::before {
  content: '';
}

.article-meta span + span::before {
  content: '\00b7';
  margin-right: 1.5rem;
  color: var(--text-dim);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

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

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-section:first-child h2 {
  border-top: none;
  padding-top: 0;
}

.article-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.article-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.article-section p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.article-intro {
  font-size: 1.1rem !important;
  color: var(--text) !important;
  line-height: 1.75;
}

.article-section ul,
.article-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.article-section ul { list-style: disc; }
.article-section ol { list-style: decimal; }

.article-section li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-section strong {
  color: var(--text);
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.benefit-card:hover {
  border-color: var(--border-hover);
}

.benefit-card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Inline product cards */
.product-card-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  transition: border-color 0.25s;
}

.product-card-inline:hover {
  border-color: var(--accent);
}

.product-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.product-card-subtitle {
  color: var(--text-dim) !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.75rem !important;
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.35rem !important;
  font-weight: 700;
  color: var(--green) !important;
  margin-bottom: 1rem !important;
}

/* Article table */
.table-wrapper {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.article-table th,
.article-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-table td {
  color: var(--text-muted);
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover td {
  background: var(--surface);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.author-info strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 0.6rem;
}

.sidebar-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.sidebar-newsletter p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-form input[type="email"] {
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
}

.sidebar-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.sidebar-form .btn {
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Fade-in animation (for article pages) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Newsletter disclaimer */
.newsletter-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.success {
  color: var(--green);
  font-weight: 600;
}

/* Nav toggle (mobile) for article pages */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.nav-open {
  transform: translateX(0) !important;
}

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: 1;
  }

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

@media (max-width: 480px) {
  .article-layout {
    padding: 0 1rem 3rem;
  }

  .article-meta span + span::before {
    margin-right: 0.75rem;
  }
}
