/*
Theme Name: FizzCraft
Theme URI: https://fizzcraft.com
Author: FizzCraft
Author URI: https://fizzcraft.com
Description: A vibrant, SEO-optimized WordPress theme for FizzCraft - your guide to brewing, fermenting, and crafting drinks at home. Built for Rank Math SEO and affiliate marketing success.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fizzcraft
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* =========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
  /* Brand Colors */
  --fc-primary: #2D6A4F;
  --fc-primary-light: #40916C;
  --fc-primary-dark: #1B4332;
  --fc-accent: #F4A261;
  --fc-accent-light: #FFBA77;
  --fc-accent-dark: #E76F51;
  --fc-teal: #48CAE4;
  --fc-teal-light: #90E0EF;
  --fc-yellow: #FFD60A;
  --fc-cream: #FEFAE0;
  --fc-warm-white: #FFFBF0;

  /* Neutrals */
  --fc-dark: #1A1A2E;
  --fc-dark-soft: #2C2C54;
  --fc-gray: #6B7280;
  --fc-gray-light: #E5E7EB;
  --fc-gray-ultra: #F9FAFB;
  --fc-white: #FFFFFF;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --sidebar-width: 320px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(72, 202, 228, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms 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-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fc-dark);
  background: var(--fc-warm-white);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--fc-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--fc-primary-light); }
ul, ol { padding-left: 1.5rem; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--fc-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* =========================================
   BUBBLE ANIMATION CANVAS
   ========================================= */
#bubble-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* =========================================
   LAYOUT
   ========================================= */
.site-wrapper { position: relative; z-index: 1; }

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

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

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

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

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,106,79,0.12);
  box-shadow: 0 2px 20px rgba(45,106,79,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.site-branding { display: flex; align-items: center; gap: var(--space-md); text-decoration: none; }

.site-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-teal));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.site-title-wrap { display: flex; flex-direction: column; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--fc-primary-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.site-title span { color: var(--fc-accent-dark); }

.site-tagline {
  font-size: 0.72rem;
  color: var(--fc-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: var(--space-xs); }

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fc-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--fc-primary);
  background: rgba(45,106,79,0.08);
}

.nav-cta {
  background: var(--fc-accent) !important;
  color: var(--fc-white) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--fc-accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--fc-dark);
  transition: all var(--transition-base);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--fc-warm-white);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--fc-gray-light);
    box-shadow: var(--shadow-lg);
    gap: var(--space-xs);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--fc-primary-dark) 0%, var(--fc-primary) 40%, var(--fc-teal) 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-4xl) var(--space-xl);
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-content { color: var(--fc-white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--fc-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--fc-accent-light);
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--fc-accent);
  color: var(--fc-white);
  box-shadow: 0 4px 20px rgba(244,162,97,0.4);
}
.btn-primary:hover {
  background: var(--fc-accent-dark);
  color: var(--fc-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,162,97,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--fc-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--fc-white);
  border-color: rgba(255,255,255,0.8);
}

.btn-green {
  background: var(--fc-primary);
  color: var(--fc-white);
}
.btn-green:hover {
  background: var(--fc-primary-dark);
  color: var(--fc-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-jar {
  position: relative;
  width: 280px; height: 380px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.jar-body {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 30px 30px 40px 40px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 0 30px rgba(255,255,255,0.05);
}

.jar-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(180deg, rgba(72,202,228,0.7) 0%, rgba(45,106,79,0.8) 100%);
  border-radius: 0 0 37px 37px;
}

.jar-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  width: 80%;
}

.jar-label-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--fc-primary-dark);
}

.jar-label-sub { font-size: 0.7rem; color: var(--fc-gray); text-transform: uppercase; letter-spacing: 0.1em; }

.jar-lid {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 35px;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 8px 8px 0 0;
}

.hero-stats {
  position: absolute;
  bottom: -20px;
  left: 50%; transform: translateX(-50%);
  display: flex;
  gap: var(--space-md);
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  box-shadow: var(--shadow-xl);
  white-space: nowrap;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--fc-primary);
  display: block;
  line-height: 1;
}
.hero-stat-label { font-size: 0.7rem; color: var(--fc-gray); text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto var(--space-2xl); }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
}

/* =========================================
   SECTION STYLES
   ========================================= */
.section { padding: var(--space-4xl) 0; }
.section--alt { background: var(--fc-cream); }
.section--dark {
  background: linear-gradient(135deg, var(--fc-primary-dark), var(--fc-dark-soft));
  color: var(--fc-white);
}

.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fc-accent-dark);
  margin-bottom: var(--space-sm);
}
.section-title { margin-bottom: var(--space-md); }
.section-desc {
  font-size: 1.1rem;
  color: var(--fc-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   CATEGORY CARDS
   ========================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  background: var(--fc-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--fc-gray-light);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--fc-primary-light);
}

.category-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}

.category-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fc-dark);
}

.category-count { font-size: 0.8rem; color: var(--fc-gray); }

/* =========================================
   POST CARDS
   ========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.posts-grid--featured {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
}

.posts-grid--featured .post-card:first-child {
  grid-row: span 2;
}

.post-card {
  background: var(--fc-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--fc-gray-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--fc-primary-light);
}

.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fc-primary-light), var(--fc-teal));
}

.post-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.post-category {
  display: inline-block;
  background: rgba(45,106,79,0.1);
  color: var(--fc-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.post-category:hover { background: var(--fc-primary); color: var(--fc-white); }

.post-date { font-size: 0.8rem; color: var(--fc-gray); }

.post-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.post-card__title a { color: var(--fc-dark); }
.post-card__title a:hover { color: var(--fc-primary); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--fc-gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--fc-gray-light);
}

.post-read-time { font-size: 0.8rem; color: var(--fc-gray); display: flex; align-items: center; gap: 4px; }

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fc-primary);
  display: flex; align-items: center; gap: 4px;
}
.read-more:hover { color: var(--fc-accent-dark); }

@media (max-width: 768px) {
  .posts-grid--featured { grid-template-columns: 1fr; }
  .posts-grid--featured .post-card:first-child { grid-row: span 1; }
}

/* =========================================
   AFFILIATE PRODUCT BOXES
   ========================================= */
.affiliate-box {
  background: linear-gradient(135deg, var(--fc-cream), var(--fc-white));
  border: 2px solid var(--fc-accent-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin: var(--space-2xl) 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.affiliate-box::before {
  content: '⭐ RECOMMENDED';
  position: absolute;
  top: -12px; left: var(--space-xl);
  background: var(--fc-accent);
  color: var(--fc-white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.affiliate-box__image {
  width: 120px; height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fc-gray-light);
}

.affiliate-box__content { flex: 1; }
.affiliate-box__title { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.affiliate-box__desc { font-size: 0.9rem; color: var(--fc-gray); margin-bottom: var(--space-md); }

.affiliate-box__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--fc-primary);
  margin-bottom: var(--space-md);
}

.affiliate-disclaimer {
  font-size: 0.75rem;
  color: var(--fc-gray);
  font-style: italic;
  margin-top: var(--space-sm);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-2xl) 0;
}

.comparison-table th {
  background: var(--fc-primary);
  color: var(--fc-white);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--fc-gray-light);
  font-size: 0.9rem;
}

.comparison-table tr:nth-child(even) td { background: var(--fc-cream); }
.comparison-table tr:hover td { background: rgba(45,106,79,0.05); }

.comparison-table .badge-best {
  background: var(--fc-accent);
  color: var(--fc-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Top Picks Grid */
.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.pick-card {
  background: var(--fc-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--fc-gray-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
}

.pick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pick-card__rank {
  width: 32px; height: 32px;
  background: var(--fc-primary);
  color: var(--fc-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem;
  margin: 0 auto var(--space-md);
}
.pick-card:nth-child(1) .pick-card__rank { background: #FFD700; color: var(--fc-dark); }
.pick-card:nth-child(2) .pick-card__rank { background: #C0C0C0; color: var(--fc-dark); }
.pick-card:nth-child(3) .pick-card__rank { background: #CD7F32; color: var(--fc-white); }

.pick-card__name { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-sm); }
.pick-card__rating { color: var(--fc-accent); font-size: 1rem; margin-bottom: var(--space-sm); }
.pick-card__price { font-weight: 700; color: var(--fc-primary); margin-bottom: var(--space-lg); font-size: 1.1rem; }

/* =========================================
   NEWSLETTER / OPT-IN
   ========================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--fc-primary-dark) 0%, var(--fc-primary) 60%, var(--fc-teal) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '🫧';
  position: absolute; top: -20px; right: 20px;
  font-size: 8rem; opacity: 0.1;
  animation: float 5s ease-in-out infinite;
}

.newsletter-title { color: var(--fc-white); margin-bottom: var(--space-md); }
.newsletter-desc { color: rgba(255,255,255,0.85); margin-bottom: var(--space-2xl); font-size: 1.05rem; }

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }

.widget {
  background: var(--fc-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--fc-gray-light);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fc-dark);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--fc-primary);
  display: flex; align-items: center; gap: var(--space-sm);
}

.widget--affiliate {
  background: linear-gradient(135deg, var(--fc-cream), var(--fc-white));
  border-color: var(--fc-accent-light);
}

.sidebar-pick {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--fc-gray-light);
}

.sidebar-pick:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-pick:first-of-type { padding-top: 0; }

.sidebar-pick__img {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--fc-gray-light);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-pick__name { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.sidebar-pick__price { font-size: 0.85rem; color: var(--fc-primary); font-weight: 700; }

/* Recent Posts Widget */
.recent-post-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--fc-gray-light);
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:first-child { padding-top: 0; }

.recent-post-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--fc-primary-light), var(--fc-teal));
  flex-shrink: 0;
  object-fit: cover;
}

.recent-post-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.recent-post-title a { color: var(--fc-dark); }
.recent-post-title a:hover { color: var(--fc-primary); }
.recent-post-date { font-size: 0.75rem; color: var(--fc-gray); }

/* =========================================
   SINGLE POST / PAGE CONTENT
   ========================================= */
.entry-header { margin-bottom: var(--space-2xl); }
.entry-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--fc-gray);
}

.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-teal));
}

.entry-title { margin-bottom: var(--space-md); }

.featured-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}

.featured-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Content Typography */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.entry-content h2 { margin: var(--space-2xl) 0 var(--space-md); color: var(--fc-primary-dark); }
.entry-content h3 { margin: var(--space-xl) 0 var(--space-md); }
.entry-content h4 { margin: var(--space-lg) 0 var(--space-sm); }
.entry-content p { margin-bottom: var(--space-lg); }
.entry-content ul, .entry-content ol { margin-bottom: var(--space-lg); }
.entry-content li { margin-bottom: var(--space-sm); }

.entry-content a {
  color: var(--fc-primary);
  text-decoration: underline;
  text-decoration-color: rgba(45,106,79,0.3);
  text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-color: var(--fc-primary); }

.entry-content blockquote {
  border-left: 4px solid var(--fc-accent);
  padding: var(--space-md) var(--space-xl);
  background: var(--fc-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-xl) 0;
  font-style: italic;
  font-size: 1.1rem;
}

.entry-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.entry-content table { width: 100%; border-collapse: collapse; margin: var(--space-xl) 0; }
.entry-content th { background: var(--fc-primary); color: var(--fc-white); padding: var(--space-md); text-align: left; }
.entry-content td { padding: var(--space-md); border-bottom: 1px solid var(--fc-gray-light); }
.entry-content tr:nth-child(even) td { background: var(--fc-cream); }

/* Info boxes */
.info-box {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  display: flex;
  gap: var(--space-md);
}

.info-box--tip { background: rgba(45,106,79,0.08); border-left: 4px solid var(--fc-primary); }
.info-box--warning { background: rgba(244,162,97,0.12); border-left: 4px solid var(--fc-accent); }
.info-box--info { background: rgba(72,202,228,0.1); border-left: 4px solid var(--fc-teal); }

.info-box__icon { font-size: 1.5rem; flex-shrink: 0; }
.info-box__title { font-weight: 700; margin-bottom: var(--space-sm); }

/* Tags */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--fc-gray-light);
}

.tag {
  background: var(--fc-gray-ultra);
  color: var(--fc-gray);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--fc-gray-light);
  transition: all var(--transition-fast);
}
.tag:hover { background: var(--fc-primary); color: var(--fc-white); border-color: var(--fc-primary); }

/* Author Box */
.author-box {
  background: var(--fc-cream);
  border: 1px solid var(--fc-gray-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-top: var(--space-2xl);
}

.author-box__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-teal));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.author-box__name { font-size: 1.1rem; font-weight: 800; margin-bottom: var(--space-sm); }
.author-box__bio { font-size: 0.9rem; color: var(--fc-gray); line-height: 1.6; }

/* =========================================
   COMMENTS
   ========================================= */
.comments-section { margin-top: var(--space-3xl); }
.comments-title { margin-bottom: var(--space-xl); }

.comment {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--fc-gray-light);
}

.comment__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-primary-light), var(--fc-teal));
  flex-shrink: 0;
}

.comment__author { font-weight: 700; margin-bottom: 4px; }
.comment__date { font-size: 0.8rem; color: var(--fc-gray); margin-bottom: var(--space-sm); }
.comment__text { font-size: 0.95rem; line-height: 1.6; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--fc-gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  background: var(--fc-white);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--fc-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================
   BREADCRUMBS
   ========================================= */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--fc-gray);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--fc-primary); }
.breadcrumbs span { color: var(--fc-gray-light); }

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
  flex-wrap: wrap;
}

.page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--fc-gray-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fc-dark);
  transition: all var(--transition-fast);
}

.page-link:hover, .page-link.active {
  background: var(--fc-primary);
  color: var(--fc-white);
  border-color: var(--fc-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--fc-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-title { color: var(--fc-white); font-size: 1.4rem; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: var(--space-lg); }

.footer-heading {
  color: var(--fc-white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--fc-accent-light); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--fc-accent-light); }

.affiliate-disclosure {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  border-left: 3px solid var(--fc-accent);
}

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-primary { color: var(--fc-primary); }
.text-accent { color: var(--fc-accent-dark); }
.text-muted { color: var(--fc-gray); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--fc-primary);
  color: var(--fc-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { top: var(--space-md); }

/* =========================================
   SEARCH
   ========================================= */
.search-form {
  display: flex;
  background: var(--fc-white);
  border: 1px solid var(--fc-gray-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-form input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}

.search-form button {
  background: var(--fc-primary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  color: var(--fc-white);
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition-fast);
}

.search-form button:hover { background: var(--fc-primary-dark); }

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  .site-header, .site-footer, .sidebar, #bubble-canvas, .newsletter-section { display: none; }
  .content-sidebar-wrap { display: block; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: underline; }
}
