/*
Theme Name: VeganBloom
Theme URI: https://veganbloom.com
Author: VeganBloom
Author URI: https://veganbloom.com
Description: A fresh, vibrant WordPress theme for vegan food blogs and nutrition supplement sites. Features a clean botanical aesthetic with powerful blog and shop-ready layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veganbloom
Tags: blog, food, vegan, nutrition, supplements, green, clean, responsive
*/

/* =============================================
   CSS CUSTOM PROPERTIES (Edit colors/fonts here!)
   ============================================= */
:root {
  /* BRAND COLORS — change these to restyle the whole site */
  --color-primary:       #2d6a4f;   /* deep forest green */
  --color-primary-light: #52b788;   /* mint green */
  --color-accent:        #f4a261;   /* warm orange */
  --color-accent-light:  #ffd166;   /* golden yellow */
  --color-bg:            #fafaf7;   /* off-white */
  --color-bg-dark:       #1a2e22;   /* dark green (footer etc.) */
  --color-surface:       #ffffff;
  --color-surface-alt:   #f0f4f0;
  --color-text:          #1c2d24;
  --color-text-muted:    #5a7263;
  --color-border:        #d8e8db;

  /* TYPOGRAPHY */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', 'Segoe 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:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* LAYOUT */
  --container-max: 1200px;
  --container-narrow: 760px;
  --sidebar-width: 320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* SHADOWS */
  --shadow-sm:  0 1px 3px rgba(45,106,79,0.08);
  --shadow-md:  0 4px 16px rgba(45,106,79,0.12);
  --shadow-lg:  0 12px 40px rgba(45,106,79,0.16);
  --shadow-hover: 0 20px 60px rgba(45,106,79,0.22);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-light); }
ul, ol { padding-left: 1.5rem; }

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

p { margin-bottom: var(--space-md); }
blockquote {
  border-left: 4px solid var(--color-primary-light);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.1rem;
  margin: var(--space-xl) 0;
}

/* =============================================
   LAYOUT CONTAINERS
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: #e07b40;
  border-color: #e07b40;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

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

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

.site-branding { display: flex; align-items: center; gap: var(--space-sm); }
.site-logo {
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.site-logo svg { width: 24px; height: 24px; fill: #fff; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}
.site-title a { color: inherit; }
.site-tagline { font-size: 0.75rem; color: var(--color-text-muted); display: block; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 0; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: var(--space-xs); padding: 0; margin: 0; }
.primary-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--color-primary);
  background: var(--color-surface-alt);
}

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: var(--space-sm);
  z-index: 100;
}
.primary-nav .menu-item-has-children:hover .sub-menu { display: block; }
.primary-nav .sub-menu li { margin: 0; }
.primary-nav .sub-menu a { padding: 0.6rem 1rem; font-size: 0.9rem; border-radius: var(--radius-sm); display: block; }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-search-btn {
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.header-search-btn:hover { color: var(--color-primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-text);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2d5a3d 60%, var(--color-primary) 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.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='%2352b788' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(82,183,136,0.2);
  border: 1px solid rgba(82,183,136,0.4);
  color: #a8dfbe;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}
.hero-title span { color: var(--color-accent-light); }
.hero-subtitle { font-size: 1.1rem; color: #a8dfbe; margin-bottom: var(--space-xl); max-width: 480px; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: var(--space-xl); margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 0.85rem; color: #a8dfbe; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-stack {
  position: relative;
  width: 320px;
  height: 380px;
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: 260px;
}
.hero-card:nth-child(1) { top: 0; left: 0; transform: rotate(-5deg); }
.hero-card:nth-child(2) { top: 60px; left: 40px; transform: rotate(2deg); z-index: 2; }
.hero-card:nth-child(3) { top: 120px; left: 10px; transform: rotate(-2deg); z-index: 1; }
.hero-card-emoji { font-size: 2rem; margin-bottom: var(--space-sm); }
.hero-card-title { font-family: var(--font-display); font-size: 1rem; color: #fff; margin-bottom: var(--space-xs); }
.hero-card-text { font-size: 0.8rem; color: #a8dfbe; }

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section { padding: var(--space-3xl) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-bg-dark); color: #fff; }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-label {
  display: inline-block;
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.section-title { margin-bottom: var(--space-md); }
.section-subtitle { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* =============================================
   CATEGORY PILLS / TAGS
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.tag--recipes      { background: #e8f5ee; color: #2d6a4f; border-color: #b7dfca; }
.tag--nutrition    { background: #fff3e0; color: #e07b30; border-color: #ffd08a; }
.tag--supplements  { background: #e8f0ff; color: #3d5aad; border-color: #b0c2f0; }
.tag--lifestyle    { background: #fce4ec; color: #c2185b; border-color: #f48fb1; }
.tag--reviews      { background: #f3e5f5; color: #7b1fa2; border-color: #ce93d8; }

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

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.post-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-surface-alt);
}
.post-card__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card__image-wrap img { transform: scale(1.06); }
.post-card__category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.post-card__body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.post-card__meta svg { width: 14px; height: 14px; }
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { color: var(--color-text-muted); font-size: 0.92rem; flex: 1; margin-bottom: var(--space-md); }
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.post-card__author { display: flex; align-items: center; gap: var(--space-sm); }
.post-card__author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  overflow: hidden;
}
.post-card__author-name { font-size: 0.85rem; font-weight: 600; }
.read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.read-more-link:hover { color: var(--color-primary-light); }

/* Featured Post Card (large) */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card--featured .post-card__image-wrap {
  width: 50%;
  aspect-ratio: unset;
  flex-shrink: 0;
}
.post-card--featured .post-card__title { font-size: 1.8rem; }
.post-card--featured .post-card__body { padding: var(--space-xl); }

/* =============================================
   FEATURED CATEGORIES GRID
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.category-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto var(--space-md);
}
.category-card__title { font-family: var(--font-display); font-size: 1rem; margin-bottom: var(--space-xs); }
.category-card__count { font-size: 0.8rem; color: var(--color-text-muted); }

/* =============================================
   SUPPLEMENT PRODUCT CARDS
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card__image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-surface-alt), #e0f0e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative;
}
.product-badge {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.product-card__body { padding: var(--space-lg); }
.product-card__name { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--space-xs); }
.product-card__brand { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.product-card__rating { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-md); }
.stars { color: var(--color-accent); font-size: 0.9rem; }
.rating-count { font-size: 0.8rem; color: var(--color-text-muted); }
.product-card__price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-primary); }
.product-card__price-old { font-size: 0.9rem; color: var(--color-text-muted); text-decoration: line-through; margin-left: var(--space-sm); }
.product-card__actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a5e38 100%);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.newsletter-section::before {
  content: '🌿';
  position: absolute;
  font-size: 20rem;
  opacity: 0.04;
  right: -2rem;
  top: -4rem;
  line-height: 1;
}
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; position: relative; }
.newsletter-inner h2 { color: #fff; margin-bottom: var(--space-md); }
.newsletter-inner p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-xl); }
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-xs);
}
.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-perks {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.newsletter-perks span::before { content: '✓ '; color: var(--color-accent-light); font-weight: 700; }

/* =============================================
   SIDEBAR
   ============================================= */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}
.sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-primary-light);
  color: var(--color-primary);
}

/* Search Widget */
.search-widget-form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.search-widget-form input {
  flex: 1; border: none; padding: 0.65rem 1rem;
  font-family: var(--font-body); outline: none; background: var(--color-surface-alt);
}
.search-widget-form button {
  background: var(--color-primary); border: none;
  padding: 0.65rem 1rem; cursor: pointer; color: #fff;
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.popular-post-item:last-child { border-bottom: none; }
.popular-post-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  overflow: hidden; flex-shrink: 0;
}
.popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-title { font-size: 0.9rem; font-weight: 600; line-height: 1.3; margin-bottom: var(--space-xs); }
.popular-post-title a { color: var(--color-text); }
.popular-post-title a:hover { color: var(--color-primary); }
.popular-post-date { font-size: 0.78rem; color: var(--color-text-muted); }

/* Tag Cloud Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.tag-cloud a {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}
.tag-cloud a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =============================================
   SINGLE POST STYLES
   ============================================= */
.post-header { padding: var(--space-3xl) 0 var(--space-xl); }
.post-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.post-content h2 { margin: var(--space-2xl) 0 var(--space-md); }
.post-content h3 { margin: var(--space-xl) 0 var(--space-md); }
.post-content ul, .post-content ol { margin-bottom: var(--space-md); }
.post-content li { margin-bottom: var(--space-xs); }
.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

/* Nutrition Facts Box */
.nutrition-box {
  border: 2px solid var(--color-text);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.nutrition-box h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  border-bottom: 8px solid var(--color-text);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nutrition-row.thick { border-bottom: 4px solid var(--color-text); }
.nutrition-row strong { font-weight: 700; }

/* Recipe Card */
.recipe-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
  border: 1px solid var(--color-border);
}
.recipe-card-header {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-lg) var(--space-xl);
}
.recipe-card-header h3 { color: #fff; margin: 0; }
.recipe-card-body { padding: var(--space-xl); }
.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.recipe-meta-item { text-align: center; }
.recipe-meta-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--color-primary); }
.recipe-meta-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Post Share Bar */
.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}
.share-btn {
  display: flex; align-items: center; gap: var(--space-xs);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.share-btn--facebook { background: #1877f2; color: #fff; }
.share-btn--twitter  { background: #1da1f2; color: #fff; }
.share-btn--pinterest { background: #e60023; color: #fff; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Author Bio Box */
.author-bio {
  display: flex;
  gap: var(--space-xl);
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  border: 1px solid var(--color-border);
}
.author-bio__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-bio__name { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: var(--space-xs); }
.author-bio__role { font-size: 0.85rem; color: var(--color-primary-light); margin-bottom: var(--space-sm); font-weight: 600; }
.author-bio__text { font-size: 0.92rem; color: var(--color-text-muted); }

/* =============================================
   COMMENTS
   ============================================= */
.comments-area { margin-top: var(--space-2xl); }
.comments-title { margin-bottom: var(--space-xl); }
.comment-list { list-style: none; padding: 0; }
.comment {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.comment-author { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.comment-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.comment-name { font-weight: 600; font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: var(--color-text-muted); }
.comment-body { color: var(--color-text); font-size: 0.95rem; }

/* Comment Form */
.comment-form { margin-top: var(--space-2xl); }
.comment-form h3 { margin-bottom: var(--space-xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: var(--space-xs); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) 0;
}
.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.page-numbers.dots { border: none; background: none; cursor: default; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .site-title { color: #fff; font-size: 1.3rem; }
.footer-brand .site-tagline { color: rgba(255,255,255,0.5); }
.footer-about { font-size: 0.9rem; margin: var(--space-md) 0 var(--space-lg); line-height: 1.6; }
.footer-social { display: flex; gap: var(--space-sm); }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
}
.social-btn:hover { background: var(--color-primary-light); color: #fff; }

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: var(--space-sm); }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-primary-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;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-certifications { display: flex; gap: var(--space-md); }
.cert-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   NOTICE / ALERT BOXES
   ============================================= */
.notice {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.notice--info    { background: #e3f2fd; border-left: 4px solid #2196f3; }
.notice--success { background: #e8f5e9; border-left: 4px solid var(--color-primary-light); }
.notice--warning { background: #fff8e1; border-left: 4px solid var(--color-accent); }
.notice--tip     { background: #f3e5f5; border-left: 4px solid #9c27b0; }
.notice-icon { font-size: 1.2rem; flex-shrink: 0; }
.notice-content { font-size: 0.93rem; }
.notice-content strong { display: block; margin-bottom: var(--space-xs); }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: var(--color-border); }

/* =============================================
   ARCHIVE / CATEGORY PAGE
   ============================================= */
.archive-header {
  background: linear-gradient(135deg, var(--color-surface-alt), var(--color-bg));
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}
.archive-header__label { color: var(--color-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.archive-header__title { margin-bottom: var(--space-sm); }
.archive-header__description { color: var(--color-text-muted); max-width: 600px; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text-muted);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =============================================
   PROGRESS / READING BAR
   ============================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 500;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-light); transform: translateY(-3px); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--color-surface);
    z-index: 999;
    padding: var(--space-2xl) var(--space-xl);
    overflow-y: auto;
  }
  .primary-nav.open ul { flex-direction: column; width: 100%; }
  .primary-nav.open a { font-size: 1.1rem; padding: 0.8rem 1rem; }
  .primary-nav.open .sub-menu { display: block; position: static; box-shadow: none; border: none; padding-left: var(--space-lg); }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__image-wrap { width: 100%; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius-lg); }
  .recipe-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: var(--space-md); }
  .hero { padding: var(--space-2xl) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-2xl) 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
