/*
Theme Name: RestRight
Theme URI: https://restright.smartlifeitems.com
Author: SmartLifeItems
Description: A soft, calming affiliate theme built specifically for sleep products, pain relief gear, and side sleeper reviews. Designed to feel trustworthy, serene, and conversion-optimized for high-value sleep product affiliate marketing.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: restright
Tags: affiliate, sleep, pain relief, side sleepers, calming, blue, white, reviews
*/

/* ============================================================
   CSS VARIABLES — SOFT BLUE & WHITE PALETTE
   ============================================================ */
:root {
  --midnight:       #1a2744;
  --midnight-dark:  #111a30;
  --navy:           #2c3e6b;
  --blue:           #3b5998;
  --blue-mid:       #4a78c4;
  --blue-light:     #6b9fd4;
  --sky:            #d4e8f7;
  --sky-light:      #eaf4fc;
  --sky-pale:       #f4f9fd;
  --lavender:       #8b9fd4;
  --lavender-light: #e8ecf7;
  --white:          #ffffff;
  --cream:          #fafbff;
  --soft-gray:      #f2f4f8;
  --border:         #dde4f0;
  --border-dark:    #c8d4e8;
  --text:           #1e2840;
  --text-muted:     #5a6480;
  --text-light:     #8a94b0;
  --teal:           #2a8a8a;
  --teal-light:     #e4f4f4;
  --gold:           #c8952a;
  --gold-light:     #fdf5e4;
  --green:          #2a7a4a;
  --green-light:    #e4f4ea;
  --red:            #c0392b;
  --red-light:      #fdecea;

  --font-heading:  'Nunito', 'Helvetica Neue', sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 50px;

  --shadow-sm:  0 2px 8px rgba(42,62,107,0.08);
  --shadow-md:  0 6px 24px rgba(42,62,107,0.12);
  --shadow-lg:  0 12px 40px rgba(42,62,107,0.16);
  --shadow-soft: 0 4px 20px rgba(107,159,212,0.20);

  --max-width:     1180px;
  --sidebar-width: 320px;
  --transition:    0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--midnight); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--midnight);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.3rem; font-size: 1.02rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 4px solid var(--blue-light);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--sky-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}

@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
  background: var(--midnight);
  padding: 8px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}

.announce-bar a { color: var(--sky); text-decoration: underline; }
.announce-bar strong { color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 28px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--midnight);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--blue-mid); }
.site-logo:hover .logo-text { color: var(--blue-mid); }

.main-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 2px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--blue-mid);
  background: var(--sky-light);
}

.nav-cta {
  background: var(--blue-mid) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.header-search:focus-within { border-color: var(--blue-light); background: var(--white); }
.header-search input { background: none; border: none; color: var(--text); font-size: 0.875rem; outline: none; width: 150px; font-family: var(--font-body); }
.header-search input::placeholder { color: var(--text-light); }
.header-search svg { color: var(--text-light); flex-shrink: 0; }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--midnight); padding: 4px; }

@media (max-width: 900px) {
  .main-nav, .header-search { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 90;
}

.category-strip-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.category-strip-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cat-tab:hover { color: var(--blue-mid); border-bottom-color: var(--blue-light); }
.cat-tab.active { color: var(--blue-mid); border-bottom-color: var(--blue-mid); font-weight: 600; }
.cat-icon { font-size: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: linear-gradient(160deg, var(--midnight) 0%, var(--navy) 60%, var(--blue) 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107,159,212,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,159,212,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107,159,212,0.2);
  border: 1px solid rgba(107,159,212,0.3);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span { color: var(--sky); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}

.hero-stat-item {}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

.hero-cards { display: flex; flex-direction: column; gap: 14px; }

.hero-product-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition: background var(--transition);
  text-decoration: none;
}

.hero-product-card:hover { background: rgba(255,255,255,0.13); }
.hero-card-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.hero-card-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }

.hero-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.hero-card-score { display: flex; align-items: center; gap: 6px; }
.hero-card-stars { color: var(--gold); font-size: 0.8rem; }
.hero-card-rating { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.hero-card-price { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--sky); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--blue-mid);
  color: #fff;
}

.btn-primary:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow-soft); transform: translateY(-1px); }

.btn-white {
  background: #fff;
  color: var(--midnight);
}

.btn-white:hover { background: var(--sky-light); color: var(--midnight); }

.btn-outline {
  background: transparent;
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}

.btn-outline:hover { background: var(--blue-mid); color: #fff; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #1f6666; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-wrap { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--midnight);
  margin: 0;
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.section-link:hover { gap: 8px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 1024px) { .products-grid, .products-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid, .products-grid.cols-2, .products-grid.cols-4 { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card.featured { border: 2px solid var(--blue-mid); }
.product-card.featured .card-badge { background: var(--blue-mid); }

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sky-pale);
  position: relative;
}

.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-thumb img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--teal);
}

.card-badge.pain { background: var(--gold); color: #4a3200; }
.card-badge.top { background: var(--midnight); }
.card-badge.budget { background: var(--green); }

.sleep-tags {
  position: absolute;
  bottom: 10px; left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sleep-tag {
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(26,39,68,0.82);
  color: var(--sky);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

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

.card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 7px;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.3;
  margin-bottom: 8px;
  display: block;
  transition: color var(--transition);
}

.card-title:hover { color: var(--blue-mid); }
.card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; flex: 1; }

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

.card-meta { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; }

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--sky-pale);
  border-top: 1px solid var(--border);
}

.score-pill { display: flex; align-items: center; gap: 10px; }

.score-bubble {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.score-bubble.excellent { background: var(--teal); }
.score-stars { color: var(--gold); font-size: 0.82rem; display: block; }
.score-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   REVIEW COMPONENTS
   ============================================================ */
.review-score-box {
  background: var(--midnight);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.score-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-soft);
}

.score-big { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.score-denom { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.score-rows { display: grid; gap: 10px; }

.score-row-item { display: flex; align-items: center; gap: 12px; }
.score-row-label { width: 130px; flex-shrink: 0; font-size: 0.8rem; color: rgba(255,255,255,0.78); }
.score-track { flex: 1; height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; background: var(--blue-light); }
.score-fill.high { background: var(--sky); }
.score-val { width: 28px; text-align: right; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: #fff; flex-shrink: 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

.pros-box {
  background: var(--green-light);
  border: 1px solid #b8ddb8;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 18px;
}

.cons-box {
  background: var(--red-light);
  border: 1px solid #f0b8b8;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 18px;
}

.pc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.pros-box .pc-title { color: var(--green); }
.cons-box .pc-title { color: var(--red); }

.pc-list { list-style: none; padding: 0; margin: 0; }
.pc-list li { font-size: 0.9rem; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; gap: 9px; color: var(--text); }
.pc-list li:last-child { border-bottom: none; }
.pc-list li::before { flex-shrink: 0; font-weight: 700; }
.pros-box li::before { content: '✓'; color: var(--green); }
.cons-box li::before { content: '✗'; color: var(--red); }

.verdict-box {
  background: var(--sky-light);
  border: 2px solid var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}

.verdict-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-label::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--blue-mid); border-radius: 2px; }
.verdict-text { font-size: 1rem; line-height: 1.75; color: var(--text); }

.affiliate-cta-block {
  background: var(--sky-pale);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}

.affiliate-cta-block .product-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.affiliate-cta-block .product-price { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--blue-mid); margin-bottom: 4px; line-height: 1; }
.affiliate-cta-block .price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }
.affiliate-cta-block .disclaimer { font-size: 0.72rem; color: var(--text-light); margin-top: 12px; }

.comparison-wrap { overflow-x: auto; margin: 32px 0; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 540px; }
.comparison-table th { background: var(--midnight); color: #fff; padding: 13px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }
.comparison-table th.highlight { background: var(--blue-mid); }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--sky-pale); }
.comparison-table tr.top-pick td { background: var(--sky-light); font-weight: 600; }
.comparison-table .check { color: var(--green); font-weight: 700; }
.comparison-table .cross { color: var(--red); }
.comparison-table .price-cell { font-weight: 700; color: var(--blue-mid); font-family: var(--font-heading); }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-box {
  background: var(--sky-pale);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.toc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 14px; }
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; padding: 5px 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: 0.9rem; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.toc-list a::before { content: counter(toc) '.'; color: var(--blue-mid); font-weight: 700; width: 18px; flex-shrink: 0; }
.toc-list a:hover { color: var(--blue-mid); }

/* ============================================================
   ARTICLE STYLES
   ============================================================ */
.article-header { padding: 40px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }

.article-breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.article-breadcrumb a { color: var(--blue-mid); }
.article-breadcrumb a:hover { color: var(--midnight); }

.article-title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.article-subtitle { font-size: 1.12rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; font-weight: 400; }

.article-meta-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); }
.author-block { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.author-name { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.author-name a { color: inherit; }
.author-name a:hover { color: var(--blue-mid); }

.tag-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--sky-light);
  color: var(--blue-mid);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tag-pill:hover { background: var(--blue-mid); color: #fff; border-color: var(--blue-mid); }

.article-featured-image { margin-bottom: 36px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.article-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.article-featured-image figcaption { padding: 10px 16px; font-size: 0.78rem; color: var(--text-muted); background: var(--sky-pale); }

.article-body { font-size: 1.05rem; line-height: 1.85; }
.article-body h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--midnight); }
.article-body h3 { margin-top: 2rem; color: var(--navy); }
.article-body p { margin-bottom: 1.5rem; }
.article-body a { color: var(--blue-mid); border-bottom: 1px solid var(--sky); }
.article-body a:hover { color: var(--midnight); border-bottom-color: var(--blue-light); }

.affiliate-disclosure {
  background: var(--gold-light);
  border: 1px solid #e8c84a;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.8rem;
  color: #5a4010;
  line-height: 1.6;
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-head { padding: 14px 20px; background: var(--midnight); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.widget-body { padding: 20px; }

.top-pick-widget { border: 2px solid var(--blue-mid); }
.top-pick-widget .widget-head { background: var(--blue-mid); }
.top-pick-img { width: 100%; border-radius: var(--radius-md); margin-bottom: 14px; aspect-ratio: 4/3; object-fit: cover; background: var(--sky-pale); }
.top-pick-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--midnight); }
.top-pick-score { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; }
.top-pick-price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--blue-mid); margin-bottom: 14px; }

.newsletter-widget { background: var(--midnight); border: none; }
.newsletter-widget .widget-head { background: rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.08); }
.newsletter-widget .widget-body { padding: 22px; }
.newsletter-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.newsletter-desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; line-height: 1.65; }

.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 11px 14px; color: #fff; font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color var(--transition); }
.nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.nl-form input:focus { border-color: var(--blue-light); }
.nl-form button { background: var(--blue-mid); color: #fff; border: none; border-radius: var(--radius-md); padding: 12px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background var(--transition); }
.nl-form button:hover { background: var(--navy); }
.nl-disclaimer { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 8px; text-align: center; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--sky-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }

.trust-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.trust-icon { color: var(--blue-mid); font-size: 1.1rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 48px 0; }

.page-link { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500; color: var(--text); transition: all var(--transition); background: var(--white); }
.page-link:hover { border-color: var(--blue-mid); color: var(--blue-mid); background: var(--sky-light); }
.page-link.current { background: var(--blue-mid); border-color: var(--blue-mid); color: #fff; box-shadow: var(--shadow-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--midnight); color: rgba(255,255,255,0.7); margin-top: auto; }
.footer-top { padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-grid { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-logo-mark { width: 32px; height: 32px; background: var(--blue-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.footer-logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-logo-text span { color: var(--sky); }

.footer-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 18px; }

.footer-socials { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; border-radius: var(--radius-md); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: all var(--transition); }
.social-btn:hover { background: var(--blue-mid); border-color: var(--blue-mid); color: #fff; }

.footer-widget-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--sky); }

.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,0.3); }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media print {
  .site-header, .site-footer, .sidebar, .announce-bar, .category-strip { display: none; }
  .content-area { grid-template-columns: 1fr; }
}
