/*
Theme Name: CreatorsMetrics
Theme URI: https://creatorsmetrics.com
Author: CreatorsMetrics Team
Author URI: https://creatorsmetrics.com
Description: Professional creator-focused theme with calculators, reviews, and guides for YouTubers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: creatorsmetrics
Tags: custom-menu, featured-images, responsive-layout, custom-logo
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #EDE9FE;
  --accent: #06B6D4;
  --accent-dark: #0891B2;
  --dark: #0F172A;
  --surface: #F8FAFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.07);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --header-height: 72px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25em; }

p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--dark);
}

code {
  font-family: var(--font-mono);
  background: var(--border);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.875em;
}

pre {
  background: var(--dark);
  color: #E2E8F0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-small { font-size: 0.875rem; }

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.025em;
}

.logo-text span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  margin-left: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

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

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

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

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

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.mobile-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  box-shadow: 0 6px 16px rgba(124,58,237,0.35);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(6,182,212,0.25);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--primary);
}

.btn-pro {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
}

.btn-pro:hover {
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
  transform: translateY(-1px);
  color: white;
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1E1B4B 50%, #0F172A 100%);
  color: white;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: #C4B5FD;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.hero h1 span {
  background: linear-gradient(135deg, #A78BFA, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: #94A3B8;
  margin-top: 0.25rem;
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   TOOL CARDS (HOME PAGE)
   =========================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.tool-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.tool-card a.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.tool-card a.card-link::after {
  content: '→';
}

.tool-card a.card-link:hover {
  color: var(--primary-dark);
}

/* ===========================
   CONTENT AREA
   =========================== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

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

.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.entry-content h2 {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.entry-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.entry-content h3 {
  margin-top: 1.5rem;
}

.entry-content ul, .entry-content ol {
  list-style: initial;
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.375em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.entry-content th {
  background: var(--surface);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--dark);
}

.entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
}

.entry-content tr:hover td {
  background: #FAFBFF;
}

/* ===========================
   CALCULATORS
   =========================== */
.cm-calculator {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.cm-calculator-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.cm-calculator-subtitle {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.cm-form-group {
  margin-bottom: 1.25rem;
}

.cm-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.cm-form-group .cm-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
  display: block;
}

.cm-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cm-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: white;
}

.cm-input::placeholder {
  color: #94A3B8;
}

.cm-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.cm-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.cm-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cm-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
}

.cm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124,58,237,0.4);
}

.cm-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(124,58,237,0.4);
}

.cm-slider-value {
  min-width: 48px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.cm-results {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #F5F3FF, #EFF6FF);
  border-radius: var(--radius-lg);
  border: 1px solid #DDD6FE;
  display: none;
}

.cm-results.show {
  display: block;
}

.cm-results-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cm-result-main {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}

.cm-result-label {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.cm-result-range {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.cm-range-item {
  text-align: center;
  padding: 0.875rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cm-range-item.low { border-top: 3px solid var(--warning); }
.cm-range-item.mid { border-top: 3px solid var(--primary); }
.cm-range-item.high { border-top: 3px solid var(--success); }

.cm-range-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.cm-range-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cm-progress-container {
  margin-top: 1rem;
}

.cm-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cm-progress-bar {
  height: 12px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.cm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.6s ease;
}

.cm-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.cm-badge-excellent { background: #D1FAE5; color: #065F46; }
.cm-badge-good { background: #DBEAFE; color: #1E40AF; }
.cm-badge-average { background: #FEF3C7; color: #92400E; }
.cm-badge-low { background: #FEE2E2; color: #991B1B; }

.cm-verdict {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.cm-verdict-pass {
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
}

.cm-verdict-fail {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
}

.cm-verdict-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.cm-verdict-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cm-verdict-pass .cm-verdict-text h4 { color: #065F46; }
.cm-verdict-fail .cm-verdict-text h4 { color: #92400E; }

.cm-verdict-text p {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0;
}

.cm-requirements-list {
  list-style: none;
  margin-top: 1rem;
}

.cm-requirements-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9375rem;
}

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

.cm-req-icon { font-size: 1.125rem; flex-shrink: 0; }
.cm-req-pass { color: var(--success); }
.cm-req-fail { color: var(--danger); }

/* ===========================
   AD SLOTS
   =========================== */
.cm-ad {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 1.5rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* ===========================
   SIDEBAR WIDGETS
   =========================== */
.sidebar-widget {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-links li {
  border-bottom: 1px solid var(--border);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.sidebar-links a::before {
  content: '→';
  color: var(--primary);
  font-size: 0.875rem;
}

.pro-widget {
  background: linear-gradient(135deg, var(--dark), #1E1B4B);
  color: white;
  text-align: center;
}

.pro-widget .sidebar-widget-title {
  color: #A78BFA;
  border-bottom-color: rgba(255,255,255,0.1);
}

.pro-widget h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.pro-widget p {
  color: #94A3B8;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pro-widget .pro-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
}

.pro-widget .pro-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #94A3B8;
}

/* ===========================
   REVIEW PAGES
   =========================== */
.review-header {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-stars {
  color: #F59E0B;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.review-score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.review-count {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.pros-list, .cons-list {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.pros-list { border-top: 3px solid var(--success); }
.cons-list { border-top: 3px solid var(--danger); }

.pros-list h4 { color: var(--success); }
.cons-list h4 { color: var(--danger); }

.pros-list ul, .cons-list ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.pros-list li, .cons-list li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

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

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

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

/* ===========================
   ALERT/NOTICE BOXES
   =========================== */
.notice {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.notice-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.notice-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.notice-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.notice-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.affiliate-notice {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-left: 4px solid var(--success);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: #166534;
  margin-bottom: 2rem;
}

/* ===========================
   FAQ
   =========================== */
.faq-section {
  margin-top: 2.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  transition: background var(--transition);
  font-size: 0.9375rem;
  color: var(--dark);
  user-select: none;
}

.faq-question:hover {
  background: var(--surface);
}

.faq-question.active {
  color: var(--primary);
}

.faq-toggle {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-question.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: white;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0.875rem 1.25rem 1.125rem;
}

/* ===========================
   GO PRO PAGE
   =========================== */
.pro-page-hero {
  background: linear-gradient(135deg, var(--dark), #1E1B4B);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.pro-page-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.pro-page-hero p {
  color: #CBD5E1;
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.pro-price-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  margin: -3rem auto 0;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  z-index: 10;
}

.pro-price-tag {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.05em;
}

.pro-price-tag span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pro-benefits-list {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.pro-benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

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

.pro-benefits-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--dark);
  color: #94A3B8;
}

.footer-main {
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  color: #64748B;
  font-size: 0.9375rem;
  margin: 1rem 0 1.25rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: #64748B;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #475569;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #475569;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: white;
}

/* ===========================
   BREADCRUMBS
   =========================== */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

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

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* ===========================
   POST META
   =========================== */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

/* ===========================
   404 PAGE
   =========================== */
.error-404-page {
  text-align: center;
  padding: 6rem 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .cm-result-range {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

/* ===========================
   WORDPRESS DEFAULTS
   =========================== */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

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