/*
Theme Name: Comparora
Theme URI: https://comparora.fr
Author: Comparora
Author URI: https://comparora.fr
Description: Thème minimaliste premium pour sites de comparatifs et reviews (VPN, antivirus, hébergement). Inspiré du design Apple. Léger, rapide, optimisé SEO.
Version: 1.0.0
Tested up to: 6.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comparora
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ============================================
   COMPARORA — Design System
   ============================================ */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #FBFBFD;
  --bg-dark: #1D1D1F;
  --bg-darker: #000000;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --text-on-dark: #F5F5F7;
  --text-on-dark-muted: #A1A1A6;
  --accent: #0071E3;
  --accent-hover: #0077ED;
  --accent-pressed: #006EDB;
  --rating: #FF9F0A;
  --success: #30D158;
  --danger: #FF453A;
  --border: #D2D2D7;
  --border-light: #E5E5EA;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 80px; --space-10: 120px;
  --max-width: 1200px;
  --max-width-narrow: 880px;
  --max-width-text: 680px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px;
  --radius-xl: 24px; --radius-full: 980px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.7; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* TOP BAR */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.top-bar a { transition: color 0.2s ease; }
.top-bar a:hover { color: var(--text-primary); opacity: 1; }
.top-bar-right { display: flex; gap: var(--space-5); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.site-logo span { color: var(--accent); }
.site-logo img { max-height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.main-nav .menu-item { position: relative; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.main-nav a:hover { background: var(--bg-secondary); opacity: 1; }
.main-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}
.main-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.main-nav .sub-menu a:hover { background: var(--bg-secondary); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background 0.2s ease;
}
.icon-btn:hover { background: var(--bg-secondary); opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); opacity: 1; }
.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border-light); opacity: 1; }
.btn-cta { background: var(--text-primary); color: white; font-weight: 500; }
.btn-cta:hover { background: #2D2D2F; opacity: 1; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.mobile-toggle { display: none; }

/* HERO */
.hero {
  padding: var(--space-10) 0 var(--space-9);
  text-align: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: 880px;
  margin-left: auto; margin-right: auto;
}
.hero h1 .accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-7);
}
.hero-actions {
  display: flex; gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}
.hero-trust {
  display: flex; gap: var(--space-7);
  justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-tertiary);
}
.hero-trust div { display: flex; align-items: center; gap: 6px; }
.hero-trust strong { color: var(--text-primary); font-weight: 600; }

/* SECTIONS */
section { padding: var(--space-9) 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-gray { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: var(--space-8); }
.section-tag {
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.section-dark .section-tag { color: #5AC8FA; }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
}
.section-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-subtitle { color: var(--text-on-dark-muted); }

/* COMPARISON TABLE */
.comparison {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.comparison-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 120px 140px 160px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row:hover { background: var(--bg-secondary); }
.comparison-row.header-row {
  background: var(--bg-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
}
.rank { font-size: 24px; font-weight: 700; color: var(--text-tertiary); text-align: center; }
.rank-1 { color: #FFD60A; }
.product-info { display: flex; flex-direction: column; gap: 2px; }
.product-name { font-size: 17px; font-weight: 600; color: var(--text-primary); }
.product-tagline { font-size: 13px; color: var(--text-secondary); }
.product-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.badge {
  font-size: 11px; padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.badge-best { background: #FFF4E5; color: #B85700; }
.badge-value { background: #E5F8EC; color: #007A3D; }
.badge-fast { background: #E5F1FF; color: #0050A8; }

.rating { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rating-score { font-size: 22px; font-weight: 600; color: var(--text-primary); }
.rating-score small { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.rating-stars { display: flex; gap: 1px; }
.rating-stars svg { width: 12px; height: 12px; fill: var(--rating); }

.spec { font-size: 14px; color: var(--text-secondary); }
.spec strong { color: var(--text-primary); font-weight: 600; font-size: 16px; display: block; }

.price-cell { display: flex; flex-direction: column; }
.price { font-size: 22px; font-weight: 600; color: var(--text-primary); }
.price small { font-size: 13px; color: var(--text-secondary); font-weight: 400; }
.price-original { font-size: 13px; color: var(--text-tertiary); text-decoration: line-through; }

.cta-cell { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.btn-table {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: background 0.2s ease;
}
.btn-table:hover { background: var(--accent-hover); opacity: 1; }
.btn-table.secondary {
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px;
}
.btn-table.secondary:hover { background: transparent; color: var(--accent); opacity: 1; }

/* CATEGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.category-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: block;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); opacity: 1; }
.category-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.category-icon-vpn { background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.category-icon-antivirus { background: rgba(48, 209, 88, 0.1); color: var(--success); }
.category-icon-hosting { background: rgba(255, 159, 10, 0.1); color: var(--rating); }
.category-icon svg { width: 28px; height: 28px; }
.category-card h3 { font-size: 24px; font-weight: 600; margin-bottom: var(--space-2); letter-spacing: -0.02em; }
.category-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin-bottom: var(--space-5); }
.category-stats {
  display: flex; gap: var(--space-5);
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}
.category-stats div { font-size: 13px; color: var(--text-tertiary); }
.category-stats strong {
  display: block;
  font-size: 20px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.category-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 500; font-size: 15px;
}

/* QUICK WINS */
.quickwins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.quickwin-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: all 0.2s ease;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.quickwin-card:hover { border-color: var(--accent); transform: translateY(-2px); opacity: 1; }
.quickwin-meta { display: flex; align-items: center; gap: var(--space-2); font-size: 12px; }
.kw-badge {
  background: var(--success); color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.04em;
}
.quickwin-meta-text { color: var(--text-tertiary); }
.quickwin-card h4 {
  font-size: 18px; font-weight: 600; line-height: 1.3;
  color: var(--text-primary); letter-spacing: -0.015em;
}
.quickwin-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* REVIEWS GRID */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.review-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); opacity: 1; }
.review-image {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 32px; font-weight: 700;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}
.review-image img { width: 100%; height: 100%; object-fit: cover; }
.review-image.vpn { background: linear-gradient(135deg, #0071E3 0%, #5856D6 100%); }
.review-image.antivirus { background: linear-gradient(135deg, #34C759 0%, #00C7BE 100%); }
.review-image.hosting { background: linear-gradient(135deg, #FF9F0A 0%, #FF375F 100%); }
.review-category-badge {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.review-content {
  padding: var(--space-5);
  display: flex; flex-direction: column;
  gap: var(--space-3); flex: 1;
}
.review-content h4 {
  font-size: 19px; font-weight: 600; line-height: 1.3;
  color: var(--text-primary); letter-spacing: -0.015em;
}
.review-content h4 a { color: inherit; }
.review-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.review-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-tertiary);
}
.review-meta-rating { display: flex; align-items: center; gap: 4px; color: var(--text-primary); font-weight: 600; }
.review-meta-rating svg { width: 14px; height: 14px; fill: var(--rating); }

/* GUIDES (dark) */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.guide-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: all 0.3s ease;
  display: flex; align-items: flex-start;
  gap: var(--space-5);
}
.guide-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(90, 200, 250, 0.4);
  opacity: 1;
}
.guide-number {
  font-size: 36px; font-weight: 200;
  color: #5AC8FA; line-height: 1;
  letter-spacing: -0.03em; min-width: 60px;
}
.guide-content h4 {
  font-size: 22px; font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.guide-content p {
  font-size: 15px; color: var(--text-on-dark-muted);
  line-height: 1.5; margin-bottom: var(--space-3);
}
.guide-link {
  color: #5AC8FA; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}

/* METHODOLOGY */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7);
  margin-top: var(--space-7);
}
.method-item { text-align: left; }
.method-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-light);
}
.method-item h4 {
  font-size: 18px; font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.015em;
}
.method-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* NEWSLETTER */
.newsletter-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-9) var(--space-7);
  text-align: center;
}
.newsletter-box h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600; letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
}
.newsletter-box p {
  font-size: 17px; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto var(--space-6);
}
.newsletter-form {
  display: flex; gap: var(--space-2);
  max-width: 440px; margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 15px; font-family: inherit;
  background: var(--bg-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-box small {
  display: block; margin-top: var(--space-3);
  font-size: 12px; color: var(--text-tertiary);
}

/* SINGLE POST / ARTICLE */
.article-header {
  padding: var(--space-9) 0 var(--space-7);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.article-category {
  display: inline-block;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.article-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.article-meta {
  display: flex; justify-content: center; align-items: center;
  gap: var(--space-5);
  font-size: 14px; color: var(--text-secondary);
  flex-wrap: wrap;
}
.article-meta-author {
  display: flex; align-items: center; gap: var(--space-2);
}
.article-meta-author img {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
}
.article-featured-image {
  margin: var(--space-7) auto;
  max-width: var(--max-width-narrow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.article-content {
  max-width: var(--max-width-text);
  margin: var(--space-7) auto;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-primary);
}
.article-content h2 {
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.022em;
  margin: var(--space-7) 0 var(--space-4);
  line-height: 1.2;
}
.article-content h3 {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.018em;
  margin: var(--space-6) 0 var(--space-3);
  line-height: 1.25;
}
.article-content p { margin-bottom: var(--space-4); }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content ul, .article-content ol {
  margin: var(--space-4) 0 var(--space-4) var(--space-5);
}
.article-content li { margin-bottom: var(--space-2); }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-5) 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-style: italic;
}
.article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
}
.article-content code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* PROS / CONS BLOCK */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.proscons-box {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.proscons-box.pros { background: rgba(48, 209, 88, 0.05); border-color: rgba(48, 209, 88, 0.2); }
.proscons-box.cons { background: rgba(255, 69, 58, 0.05); border-color: rgba(255, 69, 58, 0.2); }
.proscons-box h4 {
  font-size: 16px; font-weight: 600;
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 6px;
}
.proscons-box.pros h4 { color: var(--success); }
.proscons-box.cons h4 { color: var(--danger); }
.proscons-box ul { list-style: none; margin: 0; padding: 0; }
.proscons-box li {
  padding: 6px 0;
  font-size: 15px;
  display: flex; align-items: flex-start; gap: 8px;
}

/* RATING BOX */
.rating-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  display: flex; align-items: center; gap: var(--space-5);
}
.rating-box-score {
  font-size: 56px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.rating-box-score small { font-size: 20px; color: var(--text-secondary); }
.rating-box-content { flex: 1; }
.rating-box-content h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.rating-box-content p { font-size: 14px; color: var(--text-secondary); margin: 0; }
.rating-box-cta {
  display: inline-flex; align-items: center;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: background 0.2s ease;
}
.rating-box-cta:hover { background: var(--accent-hover); opacity: 1; }

/* ARCHIVE / CATEGORY */
.archive-header {
  padding: var(--space-9) 0 var(--space-7);
  text-align: center;
}
.archive-title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
}
.archive-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-7) 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px; font-weight: 500;
  transition: all 0.2s ease;
}
.pagination .current {
  background: var(--accent);
  color: white;
}
.pagination a:hover { background: var(--accent); color: white; opacity: 1; }

/* FOOTER */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-muted);
  padding: var(--space-9) 0 var(--space-5);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}
.footer-brand .site-logo {
  color: white;
  font-size: 24px;
  margin-bottom: var(--space-3);
  display: block;
}
.footer-brand p {
  font-size: 13px; line-height: 1.5;
  margin-bottom: var(--space-4);
  max-width: 280px;
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted);
  transition: all 0.2s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); color: white; opacity: 1; }
.footer-col h5 {
  color: white;
  font-size: 14px; font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: white; opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-disclaimer {
  max-width: 720px;
  font-size: 11px;
  line-height: 1.5;
  margin-top: var(--space-5);
  color: var(--text-tertiary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .categories-grid, .reviews-grid, .quickwins-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-row {
    grid-template-columns: 40px 1fr 100px 110px;
    grid-template-areas:
      "rank product product product"
      "rank rating spec price"
      "cta cta cta cta";
    gap: var(--space-3);
  }
  .comparison-row.header-row { display: none; }
  .rank { grid-area: rank; font-size: 18px; }
  .product-info { grid-area: product; }
  .rating { grid-area: rating; }
  .spec { grid-area: spec; }
  .price-cell { grid-area: price; align-items: flex-end; }
  .cta-cell { grid-area: cta; flex-direction: row; }
  .btn-table { flex: 1; }
  .btn-table.secondary { display: none; }
  .proscons { grid-template-columns: 1fr; }
  .rating-box { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-8) 0; }
  .categories-grid, .reviews-grid, .quickwins-grid, .methodology-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-box { padding: var(--space-7) var(--space-5); }
  .newsletter-form { flex-direction: column; }
  .newsletter-input, .newsletter-form .btn { width: 100%; }
  .container { padding: 0 var(--space-4); }
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress alignment classes */
.alignleft { float: left; margin-right: var(--space-5); }
.alignright { float: right; margin-left: var(--space-5); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--max-width-narrow); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 6px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
