/*
Theme Name: Stackvice
Theme URI: https://stackvice.com
Author: Stackvice
Author URI: https://stackvice.com
Description: A conversion-focused IT affiliate review theme with technical guide and product comparison post templates. Built for Core Web Vitals performance and editorial trust.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stackvice
Tags: blog, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Brand */
  --sv-primary: #0F6E56;
  --sv-primary-hover: #0a5040;
  --sv-primary-light: #e8f7f2;
  --sv-primary-border: #d4ede7;

  /* Text */
  --sv-text-dark: #111827;
  --sv-text-body: #374151;
  --sv-text-muted: #4b5563;
  --sv-text-light: #6b7280;

  /* Backgrounds */
  --sv-bg-white: #ffffff;
  --sv-bg-alt: #f9fafb;
  --sv-bg-code: #f3f4f6;

  /* Borders */
  --sv-border: #e5e7eb;
  --sv-border-strong: #d1d5db;

  /* Shadows */
  --sv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sv-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sv-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Layout */
  --sv-radius: 4px;
  --sv-content-max: 1100px;
  --sv-article-max: 720px;
  --sv-sidebar-w: 280px;
  --sv-gap-section: 48px;

  /* Motion */
  --sv-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sv-text-dark);
  background: var(--sv-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--sv-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--sv-primary-hover);
}

/* ==========================================================================
   3. Global Layout
   ========================================================================== */

.sv-wrap {
  max-width: var(--sv-content-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sv-post-layout {
  display: grid;
  grid-template-columns: 1fr var(--sv-sidebar-w);
  gap: 48px;
  align-items: start;
  padding: var(--sv-gap-section) 0;
}

/* ==========================================================================
   4. Article Typography
   ========================================================================== */

.sv-post-body h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--sv-text-dark);
  margin-bottom: 16px;
}

.sv-post-body h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--sv-text-dark);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--sv-border);
}

.sv-post-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sv-post-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sv-text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.sv-post-body h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sv-text-dark);
  margin-top: 24px;
  margin-bottom: 8px;
}

.sv-post-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--sv-text-body);
  margin-bottom: 20px;
}

.sv-post-body ul,
.sv-post-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.sv-post-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--sv-text-body);
  margin-bottom: 8px;
}

.sv-post-body blockquote {
  border-left: 4px solid var(--sv-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--sv-bg-alt);
  border-radius: 0 var(--sv-radius) var(--sv-radius) 0;
}

.sv-post-body blockquote p {
  font-style: italic;
  color: var(--sv-text-muted);
  margin-bottom: 0;
}

.sv-post-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  background: var(--sv-bg-code);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--sv-text-dark);
}

.sv-post-body pre {
  background: var(--sv-bg-code);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sv-post-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.sv-post-body img {
  border-radius: var(--sv-radius);
  border: 1px solid var(--sv-border);
  margin: 24px 0;
}

.sv-post-hero-image img,
.post-thumbnail img,
.wp-post-image {
  max-height: 600px;
  width: 100%;
  object-fit: cover;
}

.sv-post-body hr {
  border: none;
  border-top: 1px solid var(--sv-border);
  margin: var(--sv-gap-section) 0;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.sv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sv-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--sv-radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--sv-transition);
  box-shadow: var(--sv-shadow-sm);
}

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

.sv-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--sv-text-dark);
  padding: 12px 24px;
  border-radius: var(--sv-radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--sv-border);
  cursor: pointer;
  transition: var(--sv-transition);
}

.sv-btn-ghost:hover {
  border-color: var(--sv-text-light);
  background: var(--sv-bg-alt);
  color: var(--sv-text-dark);
}

.sv-btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sv-bg-white);
  color: var(--sv-primary);
  border: 2px solid var(--sv-primary);
  padding: 10px 20px;
  border-radius: var(--sv-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--sv-transition);
  text-align: center;
}

.sv-btn-affiliate:hover {
  background: var(--sv-primary);
  color: #fff;
}

/* ==========================================================================
   6. Site Header
   ========================================================================== */

.sv-site-header {
  border-bottom: 1px solid var(--sv-border);
  background: var(--sv-bg-white);
  position: relative;
  z-index: 100;
}

.sv-site-header .sv-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.sv-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--sv-text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-logo:hover {
  color: var(--sv-text-dark);
}

.sv-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--sv-primary);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.sv-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  margin: 0;
}

.sv-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  letter-spacing: 0.2px;
}

.sv-nav a:hover,
.sv-nav .current-menu-item a {
  color: var(--sv-text-dark);
}

/* Mobile menu toggle */
.sv-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--sv-text-dark);
}

.sv-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: var(--sv-transition);
}

/* ==========================================================================
   7. Site Footer
   ========================================================================== */

.sv-site-footer {
  border-top: 1px solid var(--sv-border);
  padding: 48px 0 32px;
  background: var(--sv-bg-alt);
}

.sv-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.sv-footer-brand p {
  font-size: 14px;
  color: var(--sv-text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.sv-footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sv-text-light);
  margin-bottom: 16px;
}

.sv-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sv-footer-links li {
  margin-bottom: 10px;
}

.sv-footer-links a {
  font-size: 14px;
  color: var(--sv-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sv-footer-links a:hover {
  color: var(--sv-text-dark);
}

.sv-footer-bottom {
  border-top: 1px solid var(--sv-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--sv-text-light);
}

/* ==========================================================================
   8. Breadcrumbs
   ========================================================================== */

.sv-breadcrumbs {
  padding: 20px 0;
  font-size: 13px;
  color: var(--sv-text-light);
  border-bottom: 1px solid var(--sv-border);
}

.sv-breadcrumbs a {
  color: var(--sv-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sv-breadcrumbs a:hover {
  color: var(--sv-primary);
}

.sv-breadcrumbs .sv-breadcrumb-sep {
  margin: 0 8px;
  color: var(--sv-border-strong);
}

.sv-breadcrumbs .sv-breadcrumb-current {
  color: var(--sv-text-dark);
  font-weight: 500;
}

/* ==========================================================================
   9. Article Meta
   ========================================================================== */

.sv-post-header {
  padding: 32px 0 0;
}

.sv-post-header .sv-article-tag {
  margin-bottom: 16px;
}

.sv-post-header h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--sv-text-dark);
  margin-bottom: 20px;
}

.sv-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--sv-text-light);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sv-border);
  flex-wrap: wrap;
}

.sv-post-meta a {
  color: var(--sv-text-muted);
  font-weight: 600;
  text-decoration: none;
}

.sv-post-meta a:hover {
  color: var(--sv-primary);
}

.sv-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sv-border-strong);
  flex-shrink: 0;
}

.sv-tested-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-primary);
  background: var(--sv-primary-light);
  padding: 4px 10px;
  border-radius: var(--sv-radius);
  letter-spacing: 0.3px;
}

/* ==========================================================================
   10. Article Tag / Category Label
   ========================================================================== */

.sv-article-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--sv-primary);
  background: var(--sv-primary-light);
  padding: 4px 12px;
  border-radius: var(--sv-radius);
  text-decoration: none;
  transition: var(--sv-transition);
}

.sv-article-tag:hover {
  background: var(--sv-primary-border);
  color: var(--sv-primary);
}

/* Section Labels */
.sv-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sv-text-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-section-label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--sv-border);
}

/* ==========================================================================
   11. Sticky Table of Contents
   ========================================================================== */

.sv-post-sidebar {
  position: relative;
}

.sv-toc {
  position: sticky;
  top: 32px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 24px;
  background: var(--sv-bg-white);
}

.sv-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sv-text-light);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sv-border);
}

.sv-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.sv-toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 0;
}

.sv-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0 8px 12px;
  font-size: 14px;
  color: var(--sv-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: var(--sv-transition);
  line-height: 1.4;
}

.sv-toc-list a::before {
  content: counter(toc-counter) ".";
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-text-light);
  min-width: 18px;
  flex-shrink: 0;
}

.sv-toc-list a:hover,
.sv-toc-list a.sv-toc-active {
  color: var(--sv-primary);
  border-left-color: var(--sv-primary);
}

.sv-toc-list a.sv-toc-active::before {
  color: var(--sv-primary);
}

/* ==========================================================================
   12. Verdict / Editor's Pick Box
   ========================================================================== */

.sv-verdict {
  background: #f8fffe;
  border: 1px solid var(--sv-primary-border);
  border-radius: var(--sv-radius);
  padding: 24px;
  margin: 32px 0;
  box-shadow: inset 4px 0 0 var(--sv-primary);
}

.sv-verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sv-verdict-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--sv-primary);
  padding: 4px 10px;
  border-radius: 2px;
}

.sv-verdict-pick {
  font-size: 20px;
  font-weight: 700;
  color: var(--sv-text-dark);
  margin-top: 8px;
}

.sv-verdict-desc {
  font-size: 15px;
  color: var(--sv-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sv-verdict-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sv-verdict-actions .sv-btn-affiliate {
  width: 100%;
}

.sv-read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-primary);
  text-decoration: none;
  padding: 10px;
  transition: var(--sv-transition);
  border-radius: var(--sv-radius);
}

.sv-read-more:hover {
  background: var(--sv-primary-light);
  color: var(--sv-primary);
}

/* Quick Verdict — full-width above content grid (review template) */
.sv-quick-verdict {
  padding: 24px 0;
}

.sv-quick-verdict .sv-verdict {
  margin: 0;
}

/* ==========================================================================
   13. Pros & Cons
   ========================================================================== */

.sv-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  overflow: hidden;
  margin: 32px 0;
}

.sv-pros {
  padding: 24px;
  border-right: 1px solid var(--sv-border);
  box-shadow: inset 4px 0 0 var(--sv-primary);
}

.sv-cons {
  padding: 24px;
  box-shadow: inset 4px 0 0 #9ca3af;
}

.sv-pros-title,
.sv-cons-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sv-border);
}

.sv-pros-title {
  color: var(--sv-primary);
}

.sv-cons-title {
  color: var(--sv-text-light);
}

.sv-pros-list,
.sv-cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sv-pros-list li,
.sv-cons-list li {
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sv-text-body);
  border-bottom: 1px solid var(--sv-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sv-pros-list li:last-child,
.sv-cons-list li:last-child {
  border-bottom: none;
}

.sv-check-icon {
  color: var(--sv-primary);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.5;
}

.sv-x-icon {
  color: #9ca3af;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ==========================================================================
   14. Comparison Table
   ========================================================================== */

.sv-compare-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
}

.sv-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}

.sv-compare-table thead th {
  background: var(--sv-bg-alt);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 16px;
  text-align: center;
  border-bottom: 2px solid var(--sv-border-strong);
  white-space: nowrap;
}

.sv-compare-table thead th:first-child {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sv-text-light);
}

.sv-compare-table tbody td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--sv-border);
  color: var(--sv-text-body);
  line-height: 1.4;
}

.sv-compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--sv-text-dark);
  white-space: nowrap;
}

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

.sv-compare-table .sv-winner-col {
  background: rgba(15, 110, 86, 0.03);
}

.sv-compare-table .sv-cta-row td {
  padding: 16px;
  border-bottom: none;
  background: var(--sv-bg-alt);
}

.sv-compare-table .sv-cta-row td:first-child {
  font-weight: 700;
  color: var(--sv-text-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sv-compare-table .sv-btn-affiliate {
  font-size: 13px;
  padding: 8px 16px;
}

/* ==========================================================================
   15. Inline Product Card
   ========================================================================== */

.sv-product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 20px;
  margin: 32px 0;
  background: var(--sv-bg-white);
  box-shadow: var(--sv-shadow-sm);
  transition: var(--sv-transition);
}

.sv-product-card:hover {
  box-shadow: var(--sv-shadow-md);
}

.sv-product-card-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--sv-radius);
  border: 1px solid var(--sv-border);
  background: var(--sv-bg-alt);
  flex-shrink: 0;
}

.sv-product-card-info {
  flex: 1;
  min-width: 0;
}

.sv-product-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--sv-text-dark);
  margin-bottom: 4px;
}

.sv-product-card-summary {
  font-size: 14px;
  color: var(--sv-text-muted);
  line-height: 1.5;
}

.sv-product-card-score {
  font-size: 13px;
  color: var(--sv-text-light);
  margin-top: 4px;
}

.sv-product-card-score strong {
  font-size: 16px;
  color: var(--sv-primary);
  font-weight: 700;
}

.sv-product-card-cta {
  flex-shrink: 0;
}

/* ==========================================================================
   16. Score Card
   ========================================================================== */

.sv-score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 20px 24px;
  margin: 24px 0;
  background: var(--sv-bg-alt);
}

.sv-score-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--sv-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.sv-score-max {
  font-size: 16px;
  font-weight: 400;
  color: var(--sv-text-light);
}

.sv-score-bar-wrap {
  flex: 1;
  min-width: 0;
}

.sv-score-product {
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-text-dark);
  margin-bottom: 8px;
}

.sv-score-bar {
  height: 6px;
  background: var(--sv-border);
  border-radius: 3px;
  overflow: hidden;
}

.sv-score-bar-fill {
  height: 100%;
  background: var(--sv-primary);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sv-score-card .sv-btn-affiliate {
  flex-shrink: 0;
}

/* ==========================================================================
   17. Callout Boxes
   ========================================================================== */

.sv-callout {
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sv-callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.6;
}

.sv-callout-content {
  flex: 1;
  min-width: 0;
}

.sv-callout-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sv-text-dark);
  margin-bottom: 4px;
}

.sv-callout-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sv-text-body);
}

.sv-callout-text p:last-child {
  margin-bottom: 0;
}

/* Callout variants */
.sv-callout--tip {
  border-left: 4px solid var(--sv-primary);
  background: #f8fffe;
}

.sv-callout--warning {
  border-left: 4px solid #d97706;
  background: #fffbeb;
}

.sv-callout--note {
  border-left: 4px solid #6b7280;
  background: var(--sv-bg-alt);
}

/* ==========================================================================
   18. FAQ Accordion
   ========================================================================== */

.sv-faq-item {
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  margin-bottom: 8px;
  background: var(--sv-bg-white);
}

.sv-faq-item[open] {
  box-shadow: var(--sv-shadow-sm);
}

.sv-faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sv-text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.15s ease;
}

.sv-faq-item summary::-webkit-details-marker {
  display: none;
}

.sv-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--sv-text-light);
  flex-shrink: 0;
  transition: var(--sv-transition);
}

.sv-faq-item[open] summary::after {
  content: '−';
  color: var(--sv-primary);
}

.sv-faq-item summary:hover {
  color: var(--sv-primary);
}

.sv-faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sv-text-body);
  border-top: 1px solid var(--sv-border);
  margin-top: 0;
  padding-top: 16px;
}

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

/* ==========================================================================
   19. Disclosure Banner
   ========================================================================== */

.sv-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sv-text-light);
  background: var(--sv-bg-alt);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 12px 16px;
  margin: 20px 0;
}

.sv-disclosure-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.sv-disclosure a {
  color: var(--sv-text-muted);
  text-decoration: underline;
}

.sv-disclosure a:hover {
  color: var(--sv-primary);
}

/* ==========================================================================
   20. Author Bio Box
   ========================================================================== */

.sv-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 24px;
  margin: var(--sv-gap-section) 0;
  background: var(--sv-bg-white);
}

.sv-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sv-border);
  flex-shrink: 0;
}

.sv-author-info {
  flex: 1;
  min-width: 0;
}

.sv-author-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--sv-text-dark);
  margin-bottom: 2px;
}

.sv-author-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-primary);
  margin-bottom: 8px;
}

.sv-author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sv-text-muted);
}

/* ==========================================================================
   21. Article Cards (Grid Items)
   ========================================================================== */

.sv-article-card {
  background: var(--sv-bg-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  transition: var(--sv-transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sv-shadow-sm);
  overflow: hidden;
  transform: translateZ(0);
}

.sv-article-card:hover {
  border-color: var(--sv-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-hover);
}

.sv-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--sv-border);
}

.sv-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
  background: var(--sv-bg-white);
}

.sv-article-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--sv-text-dark);
  line-height: 1.3;
  margin: 12px 0;
  letter-spacing: -0.3px;
}

.sv-article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.sv-article-card h3 a:hover {
  color: var(--sv-primary);
}

.sv-article-card p {
  font-size: 14px;
  color: var(--sv-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.sv-byline {
  font-size: 12px;
  color: var(--sv-text-light);
}

.sv-byline strong {
  color: var(--sv-text-dark);
  font-weight: 600;
}

.sv-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}

/* Article grid */
.sv-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sv-grid-section {
  padding: var(--sv-gap-section) 0;
  border-bottom: 1px solid var(--sv-border);
}

.sv-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sv-view-all {
  font-size: 14px;
  color: var(--sv-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--sv-transition);
}

.sv-view-all:hover {
  gap: 8px;
  color: var(--sv-primary);
}

/* Related posts section */
.sv-related-section {
  padding: var(--sv-gap-section) 0;
  border-top: 1px solid var(--sv-border);
}

/* ==========================================================================
   22. Newsletter
   ========================================================================== */

.sv-newsletter {
  padding: 64px 0;
  text-align: center;
}

.sv-newsletter h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--sv-text-dark);
  margin-bottom: 12px;
}

.sv-newsletter p {
  font-size: 16px;
  color: var(--sv-text-muted);
  margin-bottom: 32px;
}

.sv-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.sv-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--sv-transition);
  box-shadow: var(--sv-shadow-sm);
  background: var(--sv-bg-white);
  color: var(--sv-text-dark);
}

.sv-newsletter-form input[type="email"]:focus {
  border-color: var(--sv-primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.1);
}

.sv-newsletter-note {
  font-size: 12px;
  color: var(--sv-text-light);
  margin-top: 16px;
}

/* ==========================================================================
   23. Homepage Sections (migrated from home.html)
   ========================================================================== */

/* Hero */
@keyframes svFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sv-animate-load-1 {
  animation: svFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sv-animate-load-2 {
  opacity: 0;
  animation: svFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.sv-hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--sv-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sv-hero-text {
  text-align: left;
  position: relative;
  z-index: 2;
}

.sv-hero h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--sv-text-dark);
  margin-bottom: 24px;
}

.sv-hero h1 strong {
  font-weight: 700;
  color: var(--sv-primary);
}

.sv-hero p {
  font-size: 17px;
  color: var(--sv-text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 32px;
}

.sv-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sv-hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow-md);
  border: 1px solid var(--sv-border);
  transform: translateZ(0);
}

.sv-hero-img-wrap img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Category Strip */
.sv-cats {
  padding: var(--sv-gap-section) 0;
  border-bottom: 1px solid var(--sv-border);
}

.sv-cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.sv-cat {
  background: var(--sv-bg-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 24px 16px;
  text-decoration: none;
  text-align: center;
  transition: var(--sv-transition);
  box-shadow: var(--sv-shadow-sm);
}

.sv-cat:hover {
  border-color: var(--sv-primary);
  transform: translateY(-3px);
  box-shadow: var(--sv-shadow-md);
}

.sv-cat-icon {
  font-size: 28px;
  margin-bottom: 12px;
  transform: scale(1);
  transition: var(--sv-transition);
}

.sv-cat:hover .sv-cat-icon {
  transform: scale(1.1);
}

.sv-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-text-dark);
  margin-bottom: 4px;
}

.sv-cat-count {
  font-size: 12px;
  color: var(--sv-text-light);
}

/* Featured */
.sv-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--sv-border);
}

.sv-featured-main {
  padding: var(--sv-gap-section) var(--sv-gap-section) var(--sv-gap-section) 0;
  border-right: 1px solid var(--sv-border);
}

.sv-featured-sidebar {
  padding: var(--sv-gap-section) 0 var(--sv-gap-section) var(--sv-gap-section);
}

.sv-featured-main h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.sv-featured-main p {
  font-size: 16px;
  color: var(--sv-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.sv-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--sv-radius);
  margin-bottom: 24px;
  border: 1px solid var(--sv-border);
  transition: var(--sv-transition);
}

.sv-featured-img:hover {
  box-shadow: var(--sv-shadow-md);
}

/* Sidebar articles */
.sv-sidebar-list {
  display: flex;
  flex-direction: column;
}

.sv-sidebar-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--sv-border);
  transition: var(--sv-transition);
}

.sv-sidebar-item:first-child {
  padding-top: 0;
}

.sv-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sv-sidebar-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.sv-sidebar-item h3 a {
  color: inherit;
  text-decoration: none;
}

.sv-sidebar-item:hover h3 {
  color: var(--sv-primary);
}

.sv-sidebar-item p {
  font-size: 13px;
  color: var(--sv-text-muted);
  line-height: 1.5;
}

/* Trust Bar */
.sv-trust {
  padding: 40px 24px;
  border-bottom: 1px solid var(--sv-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: var(--sv-bg-alt);
}

/* Full-bleed trust bar */
.sv-trust-bleed {
  margin: 0 -24px;
}

.sv-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sv-trust-icon {
  font-size: 24px;
  background: var(--sv-bg-white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--sv-shadow-sm);
  border: 1px solid var(--sv-border);
  flex-shrink: 0;
}

.sv-trust-text {
  font-size: 13px;
  color: var(--sv-text-muted);
  line-height: 1.5;
}

.sv-trust-text strong {
  color: var(--sv-text-dark);
  font-weight: 700;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* ==========================================================================
   24. Archive & Search
   ========================================================================== */

.sv-archive-header {
  padding: var(--sv-gap-section) 0 32px;
  border-bottom: 1px solid var(--sv-border);
}

.sv-archive-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--sv-text-dark);
  margin-bottom: 8px;
}

.sv-archive-header p {
  font-size: 16px;
  color: var(--sv-text-muted);
  margin-bottom: 0;
}

.sv-archive-search {
  margin-top: 24px;
}

.sv-search-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
}

.sv-search-form input[type="search"] {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--sv-transition);
  background: var(--sv-bg-white);
  color: var(--sv-text-dark);
}

.sv-search-form input[type="search"]:focus {
  border-color: var(--sv-primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.1);
}

/* Subcategory Filter Bar */
.sv-filter-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--sv-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sv-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sv-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text-muted);
  background: var(--sv-bg-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  text-decoration: none;
  transition: var(--sv-transition);
  flex-shrink: 0;
}

.sv-filter-pill:hover {
  border-color: var(--sv-primary);
  color: var(--sv-primary);
}

.sv-filter-pill--active {
  background: var(--sv-primary);
  border-color: var(--sv-primary);
  color: #fff;
}

.sv-filter-pill--active:hover {
  background: var(--sv-primary-hover);
  border-color: var(--sv-primary-hover);
  color: #fff;
}

.sv-filter-count {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

/* Dual-tag card layout */
.sv-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sv-article-tag--sub {
  background: var(--sv-bg-alt);
  color: var(--sv-text-muted);
  border: 1px solid var(--sv-border);
}

.sv-article-tag--sub:hover {
  background: var(--sv-border);
  color: var(--sv-text-dark);
}

/* 404 */
.sv-404 {
  padding: 96px 0;
  text-align: center;
}

.sv-404-code {
  font-size: 80px;
  font-weight: 800;
  color: var(--sv-border);
  letter-spacing: -4px;
  margin-bottom: 16px;
}

.sv-404 h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--sv-text-dark);
  margin-bottom: 12px;
}

.sv-404 p {
  font-size: 16px;
  color: var(--sv-text-muted);
  margin-bottom: 32px;
}

/* ==========================================================================
   25. Pagination
   ========================================================================== */

.sv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.sv-pagination a,
.sv-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-text-muted);
  text-decoration: none;
  transition: var(--sv-transition);
}

.sv-pagination a:hover {
  border-color: var(--sv-primary);
  color: var(--sv-primary);
}

.sv-pagination .current {
  background: var(--sv-primary);
  border-color: var(--sv-primary);
  color: #fff;
}

/* ==========================================================================
   26. WordPress Core Overrides
   ========================================================================== */

.entry-content-wrap { padding: 0 !important; }
.content-area { margin-top: 0 !important; }

/* WordPress alignment classes */
.alignwide {
  margin-left: -48px;
  margin-right: -48px;
  max-width: calc(100% + 96px);
}

.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

/* WordPress caption */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: var(--sv-text-light);
  margin-top: 8px;
  text-align: center;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--sv-bg-alt);
  clip: auto !important;
  clip-path: none;
  color: var(--sv-text-dark);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   27. Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .sv-post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sv-post-sidebar {
    order: -1;
  }

  .sv-toc {
    position: relative;
    top: 0;
  }

  .sv-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .sv-trust {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sv-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sv-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .sv-wrap {
    padding: 0 16px;
  }

  .sv-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }

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

  .sv-featured {
    grid-template-columns: 1fr;
  }

  .sv-featured-main {
    padding: 40px 0;
    border-right: none;
    border-bottom: 1px solid var(--sv-border);
  }

  .sv-featured-sidebar {
    padding: 40px 0 0;
  }

  .sv-articles-grid {
    grid-template-columns: 1fr;
  }

  .sv-verdict-actions {
    grid-template-columns: 1fr;
  }

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

  .sv-pros {
    border-right: none;
    border-bottom: 1px solid var(--sv-border);
  }

  .sv-product-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .sv-product-card-cta {
    width: 100%;
  }

  .sv-product-card-cta .sv-btn-affiliate {
    width: 100%;
  }

  .sv-score-card {
    flex-wrap: wrap;
  }

  .sv-score-card .sv-btn-affiliate {
    width: 100%;
  }

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

  .sv-newsletter-form button {
    width: 100%;
  }

  .sv-post-header h1 {
    font-size: 28px;
  }

  .sv-author-box {
    flex-direction: column;
  }

  /* Navigation mobile */
  .sv-menu-toggle {
    display: block;
  }

  .sv-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sv-bg-white);
    border-bottom: 1px solid var(--sv-border);
    box-shadow: var(--sv-shadow-md);
    z-index: 99;
  }

  .sv-nav.sv-nav-open {
    display: block;
  }

  .sv-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .sv-nav a {
    display: block;
    padding: 12px 24px;
  }

  /* Disable hover transforms on mobile */
  .sv-article-card:hover { transform: none; }
  .sv-cat:hover { transform: none; }
}
