/*
Theme Name: Delicious Recipe Ideas
Theme URI: https://deliciousrecipeideas.com
Author: Delicious Recipe Ideas Team
Author URI: https://deliciousrecipeideas.com
Description: A Pinterest-optimized, Mediavine-ready WordPress theme for food and recipe blogs. Features recipe cards, nutrition info, and jump-to-recipe functionality.
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: deliciousrecipeideas
Tags: food, recipes, blog, pinterest, mediavine, recipe-cards, nutrition
*/

/* ============================================
   DELICIOUS RECIPE IDEAS - Pinterest-Optimized Food Blog
   Clean, White, Mediavine-Ready Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #c0392b;
  --primary-light: #fdf2f0;
  --primary-dark: #922b21;
  --accent: #27ae60;
  --accent-light: #eafaf1;
  --warm: #f39c12;
  --warm-light: #fef9e7;
  --text: #1a202c;
  --text-light: #718096;
  --text-lighter: #a0aec0;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --bg-warm: #fffcf5;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 340px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
h4 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }

p { margin-bottom: 1.5rem; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 0;
}

.site-logo h1 a { color: var(--text); }
.site-logo h1 a:hover { color: var(--primary); }

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  position: relative;
}

.header-search input {
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  width: 200px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  font-family: var(--font-body);
}

.header-search input:focus {
  border-color: var(--primary);
  width: 260px;
}

.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
}

.header-social {
  display: flex;
  gap: 12px;
}

.header-social a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: color 0.2s;
}

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

/* Main Navigation */
.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 0;
}

.main-nav li a {
  display: block;
  padding: 14px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.main-nav li a:hover,
.main-nav li a.active,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a,
.main-nav li.current-menu-ancestor > a {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 5px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--bg-warm);
  padding: 40px 0;
}

.hero-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

.hero-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.hero-overlay .category-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-overlay h2 {
  font-size: 1.75rem;
  color: white;
  margin: 0 0 8px;
}

.hero-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.hero-side-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

.hero-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-item .hero-overlay h2 { font-size: 1.15rem; }

/* ============================================
   CONTENT GRID
   ============================================ */
.content-section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--text);
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.post-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.post-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* Pin It Button */
.pin-it-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e60023;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.post-card:hover .pin-it-btn { opacity: 1; }
.pin-it-btn:hover { background: #ad081b; }

.post-card-body { padding: 20px; }

.post-card-body .category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.post-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* Recipe Time Badge */
.recipe-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 50px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   SINGLE POST / RECIPE PAGE
   ============================================ */
.post-header {
  padding: 40px 0 20px;
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.post-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 20px;
}

.post-breadcrumb a { color: var(--text-light); }

.post-header .category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-header h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta .author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta .divider {
  width: 4px;
  height: 4px;
  background: var(--text-lighter);
  border-radius: 50%;
}

.post-hero-image {
  max-width: 900px;
  margin: 30px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Post Content */
.post-content-area {
  padding: 30px 0 60px;
}

.post-content {
  max-width: var(--content-width);
  font-size: 18px;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
}

.post-content h3 {
  font-size: 1.375rem;
  margin: 2.5rem 0 1rem;
}

.post-content p { margin-bottom: 1.5rem; }

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-content li { margin-bottom: 0.75rem; }

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-color: var(--primary);
}

/* ============================================
   RECIPE CARD (Key for food blogs)
   ============================================ */
.recipe-card {
  background: var(--bg-warm);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 3rem 0;
}

.recipe-card-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.recipe-card-header h2 {
  font-size: 2rem;
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.recipe-card-header p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
  text-align: center;
}

.recipe-meta-item {
  padding: 15px;
  background: var(--bg);
  border-radius: var(--radius);
}

.recipe-meta-item .label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.recipe-meta-item .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.recipe-stars {
  color: var(--warm);
  font-size: 1.2rem;
  margin: 10px 0;
}

.recipe-section h3 {
  font-size: 1.3rem;
  margin: 25px 0 15px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}

.recipe-section ul, .recipe-section ol {
  padding-left: 1.5rem;
}

.recipe-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.recipe-section li::marker {
  color: var(--primary);
  font-weight: 700;
}

.recipe-notes {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 25px;
}

.recipe-notes h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent);
}

.recipe-notes p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.recipe-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.recipe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}

.recipe-btn:hover { opacity: 0.85; }
.recipe-btn.pin { background: #e60023; color: white; }
.recipe-btn.print { background: var(--text); color: white; }
.recipe-btn.save { background: var(--accent); color: white; }

/* Nutrition Label */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.nutrition-item {
  text-align: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}

.nutrition-item .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.nutrition-item .label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ad Placeholder */
.ad-placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-lighter);
  font-size: 0.8rem;
}

/* Pinterest Hidden Pin */
.pinterest-hidden-pin {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Social Share Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-share-bar span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.pinterest { background: #e60023; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.email { background: #718096; }

/* Jump to Recipe Button */
.jump-to-recipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin: 10px 8px 10px 0;
  transition: background 0.2s;
}

.jump-to-recipe:hover {
  background: var(--primary-dark);
  color: white;
}

.print-recipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.print-recipe:hover {
  background: #2d3748;
  color: white;
}

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

.related-posts h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-grid .post-card-image { aspect-ratio: 1/1; }
.related-grid .post-card-body { padding: 14px; }
.related-grid .post-card-body h3 { font-size: 1rem; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: relative; }

.sidebar-widget {
  margin-bottom: 35px;
  padding: 25px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sidebar-widget h4,
.sidebar-widget .widget-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}

/* About Widget */
.about-widget { text-align: center; }

.about-widget img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
}

.about-widget p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Email Widget */
.email-widget {
  background: var(--warm-light);
  border-color: transparent;
}

.email-widget h4,
.email-widget .widget-title {
  color: #7d6608;
  border-bottom-color: var(--warm);
}

.email-widget p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.email-widget input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.email-widget button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.email-widget button:hover { background: var(--primary-dark); }

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.popular-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-item img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-post-item h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 5px;
}

.popular-post-item h5 a { color: var(--text); }
.popular-post-item h5 a:hover { color: var(--primary); }

.popular-post-item .post-date {
  font-size: 0.75rem;
  color: var(--text-lighter);
}

/* Pinterest Follow Widget */
.pinterest-widget {
  background: #fef0ef;
  border-color: transparent;
  text-align: center;
}

.pinterest-widget h4,
.pinterest-widget .widget-title {
  border-bottom-color: #e60023;
}

.pinterest-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e60023;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.pinterest-follow-btn:hover {
  background: #ad081b;
  color: white;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-header {
  text-align: center;
  padding: 50px 0 30px;
  background: var(--bg-warm);
}

.category-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.category-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 25px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.category-pill {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   NEWSLETTER BANNER
   ============================================ */
.newsletter-banner {
  background: var(--primary);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.newsletter-banner h2 {
  color: white;
  font-size: 2rem;
  margin: 0 0 10px;
}

.newsletter-banner p {
  opacity: 0.9;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--warm);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}

.newsletter-form button:hover { background: #d4860e; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: #cbd5e0;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a0aec0;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: #a0aec0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: white; }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #a0aec0;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #718096;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background: var(--bg-warm);
  padding: 60px 0;
  text-align: center;
}

.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 50px 20px;
}

.about-content img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin: 30px 0;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h4 {
  margin: 0 0 5px;
  font-family: var(--font-heading);
}

.author-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  margin-top: 40px;
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.comments-area .comments-title {
  text-align: center;
  margin-bottom: 10px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-respond .comment-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.comment-respond .comment-form input,
.comment-respond .comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.comment-respond .comment-form .submit {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .mobile-menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; text-align: center; }
  .header-search { display: none; }
  .hero-featured { grid-template-columns: 1fr; }
  .hero-main img { height: 300px; }
  .hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .post-grid.two-col { grid-template-columns: 1fr 1fr; }
  .post-header h1 { font-size: 2rem; }
  .post-hero-image img { height: 300px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .social-share-bar { flex-wrap: wrap; }
  .recipe-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-card { padding: 25px; }
  .post-meta { flex-direction: column; gap: 8px; }
  .post-meta .divider { display: none; }
  .author-box { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-grid.two-col { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .category-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .category-pill { white-space: nowrap; }
}

/* Lazy Load */
.lazy-load { opacity: 0; transition: opacity 0.3s; }
.lazy-load.loaded { opacity: 1; }

/* Print */
@media print {
  .site-header, .main-nav, .sidebar, .social-share-bar,
  .newsletter-banner, .site-footer, .back-to-top,
  .ad-placeholder, .pin-it-btn, .recipe-actions,
  .reading-progress-bar, .post-breadcrumb,
  .jump-to-recipe, .print-recipe, .related-posts,
  .author-box, .comments-area { display: none !important; }
  body { font-size: 12pt; }
  .post-content { max-width: 100%; }
  .two-col-layout { grid-template-columns: 1fr; }
  .recipe-card { border: 1px solid #000; page-break-inside: avoid; }
}

/* Print Recipe Only */
@media print {
  body.printing-recipe * { display: none !important; }
  body.printing-recipe .recipe-card,
  body.printing-recipe .recipe-card * { display: block !important; }
  body.printing-recipe .recipe-card { border: 1px solid #000; padding: 20px; margin: 0; }
  body.printing-recipe .recipe-meta-grid,
  body.printing-recipe .nutrition-grid { display: grid !important; }
  body.printing-recipe .recipe-actions { display: none !important; }
}

/* Reading Progress */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s;
}

/* WordPress specific */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.5rem 0; }
.gallery-item { margin: 0; }
