/*
Theme Name: SnapSideHustles
Theme URI: https://snapsidehustles.com
Author: SnapSideHustles
Description: A dark, modern, AI-powered affiliate blog theme for side hustles and making money online.
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
Text Domain: snapsidehustles
Tags: blog, custom-colors, dark, featured-images, flexible-header, full-width-template, responsive-layout, two-columns, custom-menu
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg-primary:      #0a0a0a;
  --bg-secondary:    #111111;
  --bg-card:         #171717;
  --bg-card-hover:   #1f1f1f;
  --accent:          #f97316;
  --accent-hover:    #ea6c0a;
  --accent-light:    rgba(249,115,22,0.12);
  --text-primary:    #ffffff;
  --text-secondary:  #d1d5db;
  --text-muted:      #6b7280;
  --border:          #262626;
  --border-accent:   rgba(249,115,22,0.4);
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --shadow:          0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:       0 8px 48px rgba(0,0,0,0.7);
  --transition:      0.25s ease;
  --max-width:       1200px;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-heading:    'Poppins', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

code {
  background: var(--bg-card);
  color: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1400px; }

.section-pad { padding: 80px 0; }
.section-pad-lg { padding: 120px 0; }

.text-center { text-align: center; }
.text-orange { color: var(--accent) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Section header */
.section-header { margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 { color: var(--text-primary); }
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  max-width: 540px;
}
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* Divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 1rem;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-accent { background: var(--accent-light); color: var(--accent); border: 1px solid var(--border-accent); }
.badge-dark   { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }

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

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

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}
.site-branding a:hover { color: var(--text-primary); }
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.site-title-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.site-title-text span { color: var(--accent); }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--accent);
  background: var(--accent-light);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-search-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.header-search-btn:hover { color: var(--accent); border-color: var(--accent); }
.header-search-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay form {
  width: 100%;
  max-width: 640px;
  position: relative;
}
.search-overlay input[type="search"] {
  width: 100%;
  padding: 1.25rem 1.5rem;
  padding-right: 56px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.25rem;
  outline: none;
}
.search-overlay button[type="submit"] {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.search-overlay button[type="submit"] svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.search-overlay-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  transition: color var(--transition);
}
.search-overlay-close:hover { color: var(--text-primary); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.95) 50%, rgba(249,115,22,0.08) 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero-headline .highlight {
  color: var(--accent);
  position: relative;
}
.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   POST CARDS
   ============================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.post-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}
.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-image .card-category {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
}
.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.post-card-meta .sep { opacity: 0.4; }
.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.post-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.read-more-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.read-more-link:hover { gap: 0.6rem; color: var(--accent); }
.read-more-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* Hero card (large) */
.post-card--hero { flex-direction: row; }
.post-card--hero .post-card-image { aspect-ratio: auto; min-height: 300px; flex: 0 0 50%; }
.post-card--hero .post-card-body { padding: 2rem; justify-content: center; }
.post-card--hero .post-card-title { font-size: 1.5rem; -webkit-line-clamp: 4; }

/* ============================================================
   FEATURED POSTS SECTION
   ============================================================ */
.featured-section { background: var(--bg-secondary); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.featured-grid .post-card--hero {
  grid-column: 1 / -1;
}

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section { border-top: 1px solid var(--border); }
.category-section:nth-child(even) { background: var(--bg-secondary); }
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, #111111 0%, #1a0d00 50%, #111111 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.newsletter-form-wrap h3 {
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-perks { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-perk {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.perk-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.perk-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-bottom: 0.15rem;
}
.perk-text span { font-size: 0.82rem; color: var(--text-muted); }
.newsletter-privacy {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .site-title-text { font-size: 1.3rem; margin-bottom: 0.75rem; display: block; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.social-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li a::before {
  content: '→';
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.footer-col ul li a:hover::before { opacity: 1; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.82rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.single-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.1) 100%);
}
.single-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 0 2.5rem;
}

.article-header { margin-bottom: 2rem; }
.article-header .badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.article-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta .author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.article-meta .meta-divider { width: 1px; height: 16px; background: var(--border); }
.article-meta .reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 500;
}
.article-meta .reading-time svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

/* Article content styles */
.article-content { max-width: none; }
.article-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.article-content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.article-content h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article-content p { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.5rem; }
.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.article-content ol { list-style: decimal; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent-hover); }
.article-content img { border-radius: var(--radius-md); margin: 2rem 0; }
.article-content .wp-block-image { margin: 2rem 0; }
.article-content strong { color: var(--text-primary); }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.article-content th {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
}
.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.article-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Share buttons */
.share-section {
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.share-section span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  color: #fff;
}
.share-btn svg { width: 15px; height: 15px; fill: currentColor; }
.share-btn.twitter  { background: #1DA1F2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.pinterest{ background: #E60023; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }

/* Author bio */
.author-bio {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.author-bio-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.author-bio-info .author-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.author-bio-info .author-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.author-bio-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* Related posts */
.related-posts { margin: 3rem 0; }
.related-posts h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-posts { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-post { display: flex; gap: 0.75rem; align-items: flex-start; }
.sidebar-post-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.sidebar-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-title:hover { color: var(--accent); }
.sidebar-post-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.sidebar-cats { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.sidebar-cat-link:hover {
  border-color: var(--border-accent);
  background: var(--accent-light);
  color: var(--accent);
}
.sidebar-cat-link .cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

/* ============================================================
   ARCHIVE / BLOG INDEX
   ============================================================ */
.archive-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.archive-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(249,115,22,0.06) 100%);
}
.archive-hero-content { position: relative; }
.archive-hero-content .eyebrow { margin-bottom: 0.75rem; }
.archive-hero-content h1 { margin-bottom: 0.75rem; }
.archive-hero-content p { font-size: 1.1rem; color: var(--text-muted); margin: 0; }

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

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}
.error-code {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -2rem;
}
.error-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results-header { margin-bottom: 2rem; }
.search-results-header h1 { font-size: 1.75rem; }
.search-results-header span { color: var(--accent); }

/* ============================================================
   NO THUMBNAIL PLACEHOLDER
   ============================================================ */
.no-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  color: var(--text-muted);
}
.no-thumb-placeholder svg { width: 48px; height: 48px; opacity: 0.3; fill: currentColor; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* Comments */
.comments-area {
  margin: 3rem 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.comments-area h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.comment { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.comment-author-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.comment-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.comment-body p { font-size: 0.93rem; margin-top: 0.75rem; margin-bottom: 0; }
.comment-reply-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-block;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  border: none;
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-hover); transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ============================================================
   LOADING ANIMATION
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.mobile-nav { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid .post-card--hero { grid-column: auto; flex-direction: column; }
  .featured-grid .post-card--hero .post-card-image { flex: none; aspect-ratio: 16/9; min-height: auto; }
  .category-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --max-width: 100%; }
  .section-pad { padding: 60px 0; }
  .section-pad-lg { padding: 80px 0; }
  .primary-nav, .header-search-btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
  }
  .mobile-nav a:hover { background: var(--accent-light); color: var(--accent); }
  .featured-grid { grid-template-columns: 1fr; }
  .category-posts-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .single-hero { height: 45vw; min-height: 260px; }
  .author-bio { flex-direction: column; }
  .share-section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 0; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: none; margin-left: calc(-1 * var(--max-width) / 2); }
.wp-caption { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem; text-align: center; }
.wp-caption-text { font-size: 0.82rem; color: var(--text-muted); padding: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery-item { overflow: hidden; border-radius: var(--radius-sm); }
.gallery-item img { transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.sticky { border-left: 4px solid var(--accent); padding-left: 1rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
