/*
Theme Name: Nigerian Lazy Chef
Description: A beautiful, modern WordPress theme for Food blogs featuring recipes, restaurant reviews, and cultural content. Perfect for food bloggers, chefs, and culinary enthusiasts.
Version: 1.0.0
Author: The Techvilla
Author URI: https://thetechvilla.com
Text Domain: nlc
Tags: food, blog, recipes, restaurants, two-columns, custom-post-types, custom-fields, responsive-layout, translation-ready
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Nigerian Lazy Chef WordPress Theme
Copyright (C) 2024, The Techvilla

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

/* Import Tailwind CSS */
@import url('./dist/tailwind.css');


/* CSS Variables for Theme Colors and Design Tokens */
:root {
  /* Primary Color Palette */
  --primary-green: #059669;
  --primary-green-50: #ecfdf5;
  --primary-green-100: #d1fae5;
  --primary-green-200: #a7f3d0;
  --primary-green-300: #6ee7b7;
  --primary-green-400: #34d399;
  --primary-green-500: #10b981;
  --primary-green-600: #059669;
  --primary-green-700: #047857;
  --primary-green-800: #065f46;
  --primary-green-900: #064e3b;
  
  /* Secondary Color Palette */
  --secondary-orange: #f59e0b;
  --secondary-orange-50: #fffbeb;
  --secondary-orange-100: #fef3c7;
  --secondary-orange-200: #fde68a;
  --secondary-orange-300: #fcd34d;
  --secondary-orange-400: #fbbf24;
  --secondary-orange-500: #f59e0b;
  --secondary-orange-600: #d97706;
  --secondary-orange-700: #b45309;
  --secondary-orange-800: #92400e;
  --secondary-orange-900: #78350f;
  
  /* Accent Color Palette */
  --accent-red: #dc2626;
  --accent-red-50: #fef2f2;
  --accent-red-100: #fee2e2;
  --accent-red-200: #fecaca;
  --accent-red-300: #fca5a5;
  --accent-red-400: #f87171;
  --accent-red-500: #ef4444;
  --accent-red-600: #dc2626;
  --accent-red-700: #b91c1c;
  --accent-red-800: #991b1b;
  --accent-red-900: #7f1d1d;
  
  /* Neutral Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Legacy aliases for backward compatibility */
  --accent-green: var(--primary-green-700);
  --light-green: var(--primary-green-50);
  --dark-green: var(--primary-green-900);
  
  /* Sophisticated Shadow System */
  --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-soft-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-soft-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-soft-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-soft-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner-soft: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  --shadow-glow-md: 0 0 0 5px rgba(5, 150, 105, 0.15);
  
  /* Legacy shadow aliases */
  --shadow: var(--shadow-soft);
  --shadow-md: var(--shadow-soft-md);
  --shadow-lg: var(--shadow-soft-lg);
  
  /* Border Radius System */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Systematic Spacing Scale (rem units) */
  --space-0-25: 0.0625rem;  /* 1px */
  --space-0-5: 0.125rem;    /* 2px */
  --space-1: 0.25rem;       /* 4px */
  --space-1-5: 0.375rem;    /* 6px */
  --space-2: 0.5rem;        /* 8px */
  --space-2-5: 0.625rem;    /* 10px */
  --space-3: 0.75rem;       /* 12px */
  --space-3-5: 0.875rem;    /* 14px */
  --space-4: 1rem;          /* 16px */
  --space-5: 1.25rem;       /* 20px */
  --space-6: 1.5rem;        /* 24px */
  --space-8: 2rem;          /* 32px */
  --space-10: 2.5rem;       /* 40px */
  --space-12: 3rem;         /* 48px */
  --space-16: 4rem;         /* 64px */
  --space-20: 5rem;         /* 80px */
  --space-24: 6rem;         /* 96px */
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

h3, h4 {
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

h5, h6 {
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

/* Body text improvements */
p {
  font-weight: 200;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Systematic text spacing */
.text-spacing-sm > * + * {
  margin-top: 0.5rem;
}

.text-spacing-md > * + * {
  margin-top: 1rem;
}

.text-spacing-lg > * + * {
  margin-top: 1.5rem;
}

/* Links */
a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-green);
}

/* Header Styles - Modern Center-Aligned Design */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease;
}

.site-header:hover {
  box-shadow: var(--shadow-soft-md);
}

/* Header Branding - Center-aligned */
.header-branding {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}

.site-branding {
  display: inline-block;
}

.logo-text {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-2);
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1.2;
}

.logo-text:hover {
  color: var(--primary-green-700);
  transform: scale(1.02);
}

.tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

/* Header Navigation - Positioned below branding */
.header-navigation {
  position: relative;
  padding: var(--space-4) 0;
}

/* Mobile Menu Toggle - Enhanced */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--gray-100);
}

.mobile-menu-toggle:focus {
  outline: none;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background-color: var(--gray-700);
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
  background-color: var(--primary-green);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
  background-color: var(--primary-green);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation */
.mobile-nav {
  display: none; /* Hide by default on mobile */
  position: fixed;
  top: 0;
  right: -320px; /* Start off-screen */
  width: 320px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-soft-2xl);
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
  right: 0; /* Slide in */
}

/* Navigation - Enhanced with better hover effects */
.main-navigation {
  display: none;
  justify-content: center;
}

@media (min-width: 769px) {
  .main-navigation {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary-green);
  background-color: var(--primary-green-50);
  transform: translateY(-1px);
}

.nav-menu a[aria-current="page"],
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: white;
  background-color: #047857;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Remove underline animation for cleaner look */
.nav-menu a::after {
  display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 40;
}

/* Hero Section */
.hero-section {
  background-color: var(--nlc-hero-bg-color, #ecfdf5);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 500;
  color: var(--nlc-hero-title-color, #1f2937);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--nlc-hero-subtitle-color, #6b7280);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Search Form */
.search-form {
  display: flex;
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  background: white;
  padding: var(--space-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.search-form:focus-within {
  box-shadow: var(--shadow-soft-xl);
  border-color: var(--gray-300);
}

.search-input {
  flex: 1;
  padding: var(--space-4);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: var(--gray-50);
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--gray-300);
  background: white;
  box-shadow: none !important;
  outline: none !important;
}

.search-input::placeholder {
  color: var(--gray-400);
  font-weight: 200;
}

.filter-select {
  padding: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  min-width: 140px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-select:focus {
  border-color: var(--gray-300);
  background: white;
  box-shadow: none;
}

.search-button {
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-600));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.search-button:hover {
  background: linear-gradient(135deg, var(--primary-green-600), var(--primary-green-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
}

.search-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-soft);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

.search-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-suggestion-item:hover {
  background: var(--gray-100);
}

/* Popular Searches */
.popular-searches {
  margin-top: 2rem;
}

.popular-searches h4 {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.search-tag {
  padding: 0.5rem 1rem;
  background: white;
  color: var(--primary-green-500);
  border: 1px solid var(--gray-200);
  border-radius: 2rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-tag:hover {
  background: var(--primary-green-100);
  color: var(--primary-green);
}

/* Section Styles */
.featured-section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.view-all-link {
  color: var(--primary-green);
  font-weight: 500;
  text-decoration: none;
}

.view-all-link:hover {
  color: var(--accent-green);
}

/* Enhanced Grid Layouts with Better Responsive Design */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  align-items: start;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

/* Enhanced Two-Column Layout System */
.two-column-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.two-column-layout .main-content-area {
  grid-column: 1 / 2;
}

.two-column-layout .sidebar-area {
  grid-column: 2 / 3;
}

.main-content-area {
  min-width: 0; /* Prevents grid overflow */
  grid-area: main;
}

.sidebar-area {
  min-width: 0; /* Prevents grid overflow */
  grid-area: sidebar;
}

/* Enhanced Card Styles with Sophisticated Depth */
.recipe-card, .content-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.recipe-card:hover, .content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-soft-xl), 0 8px 25px -8px rgba(5, 150, 105, 0.15);
  border-color: var(--primary-green-200);
}

.recipe-card::before, .content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-400), var(--secondary-orange-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recipe-card:hover::before, .content-card:hover::before {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 10;
}

.static-badge {
  position: static;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Comprehensive Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  outline: none;
}

.btn:focus {
  outline: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: 1.125rem;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-600));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-green-600), var(--primary-green-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

/* Secondary Button */
.btn-secondary {
  background: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft-md);
  color: var(--gray-800);
}

.btn-secondary:active {
  transform: translateY(0);
  background: var(--gray-100);
}

/* Accent Button */
.btn-accent {
  background: linear-gradient(135deg, var(--secondary-orange), var(--secondary-orange-600));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--secondary-orange-600), var(--secondary-orange-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
  color: white;
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

/* Destructive Button */
.btn-destructive {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-600));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-destructive:hover {
  background: linear-gradient(135deg, var(--accent-red-600), var(--accent-red-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
  color: white;
}

.btn-destructive:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

/* Outline Button Variants */
.btn-outline {
  background: transparent;
  border-width: 2px;
}

.btn-outline.btn-primary {
  color: var(--primary-green);
  border-color: var(--primary-green);
  background: transparent;
}

.btn-outline.btn-primary:hover {
  background: var(--primary-green);
  color: white;
}

.btn-outline.btn-secondary {
  color: var(--gray-600);
  border-color: var(--gray-300);
  background: transparent;
}

.btn-outline.btn-secondary:hover {
  background: var(--gray-600);
  color: white;
  border-color: var(--gray-600);
}

.btn-outline.btn-accent {
  color: var(--secondary-orange);
  border-color: var(--secondary-orange);
  background: transparent;
}

.btn-outline.btn-accent:hover {
  background: var(--secondary-orange);
  color: white;
}

/* Ghost Button Variants */
.btn-ghost {
  background: transparent;
  border: none;
  box-shadow: none;
}

.btn-ghost.btn-primary {
  color: var(--primary-green);
}

.btn-ghost.btn-primary:hover {
  background: var(--primary-green-50);
  color: var(--primary-green-700);
}

.btn-ghost.btn-secondary {
  color: var(--gray-600);
}

.btn-ghost.btn-secondary:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button Groups */
.btn-group {
  display: inline-flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.btn-group .btn {
  border-radius: 0;
  border-right-width: 1px;
  margin: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-right-width: 2px;
}

/* Specific Button Applications */
.view-recipe-btn {
  width: 100%;
  justify-content: center;
}

.load-more-btn {
  margin: var(--space-8) auto;
  display: block;
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner styles */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
}

.spinner div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #059669;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.spinner .bounce2 {
  animation-delay: -1.0s;
}

@keyframes sk-bounce {
  0%, 100% {
    transform: scale(0);
  } 50% {
    transform: scale(1);
  }
}

/* Icon Buttons */
.btn-icon {
  padding: var(--space-3);
  width: auto;
  aspect-ratio: 1;
}

.btn-icon.btn-sm {
  padding: var(--space-2);
}

.btn-icon.btn-lg {
  padding: var(--space-4);
}

/* Enhanced Blog Post Preview with Modern Styling */
.blog-post-preview {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-post-preview:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-soft-lg), 0 8px 25px -8px rgba(5, 150, 105, 0.12);
  border-color: var(--primary-green-200);
}

.blog-post-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-post-preview:hover::after {
  opacity: 1;
}

.blog-post-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.blog-post-content {
  padding: 2rem;
}

.blog-post-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.blog-post-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Enhanced Card Excerpt Styling */
.card-excerpt {
  color: var(--gray-600) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin: 1rem 0 !important;
  font-weight: 300;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4.5em; /* 3 lines * 1.5 line-height */
}

.card-excerpt:empty {
  display: none;
}

/* Ensure excerpts are visible and properly styled */
.recipe-card .card-excerpt,
.content-card .card-excerpt {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.recipe-card:hover .card-excerpt,
.content-card:hover .card-excerpt {
  opacity: 1;
}

/* Enhanced Recipe Form Styling */
.recipe-time-group .acf-field {
  margin-bottom: 0.75rem;
}

.recipe-time-group .acf-label {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.recipe-time-group .select2-container {
  width: 100% !important;
}

.recipe-time-group .select2-selection {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-height: 44px;
  transition: all 0.3s ease;
}

.recipe-time-group .select2-selection:focus,
.recipe-time-group .select2-container--open .select2-selection {
  border-color: var(--gray-300);
  box-shadow: none;
}

.recipe-total-time-display {
  background: var(--primary-green-50);
  border: 1px solid var(--primary-green-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 1rem 0;
}

.recipe-total-time-display .acf-message {
  color: var(--primary-green-700);
  font-weight: 500;
  margin: 0;
  text-align: center;
}

/* Recipe Ingredients Section Styling */
.recipe-ingredients-section .acf-repeater {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.recipe-ingredients-section .acf-repeater-table {
  background: white;
}

.recipe-ingredients-section .acf-row {
  border-bottom: 1px solid var(--gray-100);
  transition: background-color 0.2s ease;
}

.recipe-ingredients-section .acf-row:hover {
  background-color: var(--gray-50);
}

.recipe-ingredients-section .acf-row:last-child {
  border-bottom: none;
}

.recipe-ingredients-section .acf-field {
  padding: 1rem;
}

.recipe-ingredients-section .wp-editor-wrap {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}

.recipe-ingredients-section .wp-editor-container {
  border: none;
}

.recipe-ingredients-section .mce-toolbar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

/* Recipe Instructions Section Styling */
.recipe-instructions-section .acf-field,
.recipe-tips-section .acf-field {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.recipe-instructions-section .acf-label,
.recipe-tips-section .acf-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.recipe-instructions-section .wp-editor-wrap,
.recipe-tips-section .wp-editor-wrap {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.recipe-instructions-section .mce-toolbar,
.recipe-tips-section .mce-toolbar {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-bottom: 1px solid var(--gray-300);
}

/* Recipe Nutrition Section Styling */
.recipe-nutrition-section .acf-field {
  background: var(--primary-green-50);
  border: 2px solid var(--primary-green-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.recipe-nutrition-section .acf-label {
  color: var(--primary-green-800);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.recipe-nutrition-section .acf-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.recipe-nutrition-section .acf-field-number {
  background: white;
  border-radius: var(--radius);
  padding: 0.75rem;
  border: 1px solid var(--primary-green-200);
}

.recipe-nutrition-section .acf-field-number input {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.5rem;
  width: 100%;
  transition: all 0.3s ease;
}

.recipe-nutrition-section .acf-field-number input:focus {
  border-color: var(--gray-300);
  box-shadow: none;
}

/* Enhanced Form Controls */
.acf-field select,
.acf-field input[type="text"],
.acf-field input[type="number"],
.acf-field input[type="url"],
.acf-field input[type="email"] {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.acf-field select:focus,
.acf-field input[type="text"]:focus,
.acf-field input[type="number"]:focus,
.acf-field input[type="url"]:focus,
.acf-field input[type="email"]:focus {
  border-color: var(--gray-300);
  box-shadow: none;
  outline: none;
}

/* Enhanced True/False Toggle Styling */
.acf-field-true-false .acf-switch {
  background: var(--gray-300);
  border-radius: 2rem;
  position: relative;
  width: 60px;
  height: 30px;
  transition: all 0.3s ease;
}

.acf-field-true-false .acf-switch.-on {
  background: var(--primary-green);
}

.acf-field-true-false .acf-switch .acf-switch-slider {
  background: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.acf-field-true-false .acf-switch.-on .acf-switch-slider {
  transform: translateX(30px);
}

/* Recipe Form Section Headers */
.acf-field-group > .acf-field:first-child {
  border-top: 3px solid var(--primary-green);
  margin-top: 2rem;
}

.acf-field-group > .acf-field:first-child .acf-label {
  background: var(--primary-green);
  color: white;
  padding: 0.75rem 1rem;
  margin: -1px -1px 1rem -1px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Enhanced Single Recipe Page Styling */
.ingredients-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  border-left: 3px solid var(--primary-green-200);
}

.ingredient-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-left-color: var(--primary-green);
  transform: translateX(2px);
}

.ingredient-content {
  font-size: 0.95rem;
  line-height: 1.5;
}

.ingredient-content strong {
  color: var(--primary-green-700);
  font-weight: 600;
}

.ingredient-content em {
  color: var(--gray-600);
  font-style: italic;
}

.ingredient-bullet {
  color: var(--primary-green) !important;
  opacity: 0.8;
}

/* Enhanced Recipe Meta Display */
.recipe-meta-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-green-50) 0%, var(--primary-green-100) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--primary-green-200);
}

.meta-item {
  text-align: center;
  padding: 0.5rem;
}

.meta-icon {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Enhanced Recipe Badges */
.recipe-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card-badge.static-badge {
  position: static;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge.btn-accent {
  background: linear-gradient(135deg, var(--secondary-orange), var(--secondary-orange-600));
  color: white;
  box-shadow: var(--shadow-soft);
}

/* Enhanced Recipe Title */
.recipe-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin: 1rem 0 2rem;
  line-height: 1.2;
}

/* Enhanced Content Blocks for Recipe */
.recipe-container .content-block {
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.recipe-container .content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-400), var(--secondary-orange-400));
  opacity: 0.8;
}

/* Enhanced Video Container */
.video-container {
  box-shadow: var(--shadow-soft-lg);
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
}

.video-container:hover {
  box-shadow: var(--shadow-soft-xl);
  border-color: var(--primary-green-200);
}

/* Enhanced Chef Tips Styling */
.chef-tips-content {
  background: var(--primary-green-50);
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem;
  border-radius: var(--radius);
  font-style: italic;
  position: relative;
}

.chef-tips-content::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  color: var(--primary-green);
  font-family: serif;
  line-height: 1;
}

/* Enhanced Nutrition Grid */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.nutrition-item {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--primary-green-200);
  transition: all 0.2s ease;
}

.nutrition-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
  border-color: var(--primary-green);
}

.nutrition-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.nutrition-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-transform: capitalize;
  font-weight: 500;
}

/* Enhanced Recipe Actions */
.recipe-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

/* Post Meta Spacing */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 200px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-meta i {
  color: var(--primary-green);
}

.print-recipe-btn,
.share-recipe-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.print-recipe-btn:hover,
.share-recipe-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* No Ingredients Message Styling */
.no-ingredients-message {
  text-align: center;
  margin: 2rem 0;
}

.no-ingredients-message p {
  margin: 0;
  font-weight: 500;
}

/* Enhanced Comment Form Styling */
.comments-area {
  margin-top: 3rem;
  padding: 0 1rem;
}

.comments-area .content-block {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.comments-area .content-block-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 0.5rem;
}

/* Comment Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gray-300);
  box-shadow: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Comment List Styling */
.comment-list {
  margin-top: 2rem;
}

.comment-list .content-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.comment-author {
  font-weight: 600;
  color: var(--primary-green);
}

.comment-author a {
  color: var(--primary-green);
  text-decoration: none;
}

.comment-author a:hover {
  text-decoration: underline;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.comment-content {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply {
  text-align: right;
}

.comment-reply a {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.comment-reply a:hover {
  text-decoration: underline;
}

.comment-awaiting-moderation {
  background: var(--secondary-orange-50);
  color: var(--secondary-orange-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 1rem 0;
  border-left: 3px solid var(--secondary-orange);
}

/* Submit Button Styling */
.btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-600));
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-green-600), var(--primary-green-700));
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft-md);
}

.btn.btn-primary:active {
  transform: translateY(0);
}

/* Screen Reader Only Text */
.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;
}

/* Fix Recipe Title Overlap Issue */
.recipe-header {
  position: relative;
  padding: 2rem 0;
  text-align: center;
}

.recipe-title {
  margin: 0 6rem 2rem 0 !important; /* Add more right margin to prevent overlap */
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.2 !important;
}

/* Enhanced Recipe Actions */
.recipe-actions {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  display: flex !important;
  gap: 0.5rem !important;
  z-index: 20 !important;
}

.print-recipe-btn,
.share-recipe-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #374151 !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

.print-recipe-btn:hover,
.share-recipe-btn:hover {
  background: var(--primary-green) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Responsive Design for Recipe Form */
@media (max-width: 768px) {
  .recipe-time-group .acf-fields {
    flex-direction: column;
  }
  
  .recipe-nutrition-section .acf-fields {
    grid-template-columns: 1fr;
  }
  
  .acf-field[data-width="50"] {
    width: 100% !important;
  }
  
  .acf-field[data-width="33"] {
    width: 100% !important;
  }
  
  /* Recipe Page Mobile Styles */
  .recipe-title {
    font-size: 2rem !important;
    margin: 0 0 2rem 0 !important; /* Remove right margin on mobile */
  }
  
  .recipe-meta-header {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
  
  .ingredients-list {
    margin-right: 0 !important;
  }
  
  .ingredient-image {
    position: static !important;
    transform: none !important;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .recipe-actions {
    position: static !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
  }
  
  .post-meta {
    padding-right: 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mobile Comment Form */
  .comments-area {
    padding: 0 0.5rem;
  }
  
  .comments-area .content-block {
    padding: 1rem;
  }
  
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Archive Pages */
.archive-header {
  background: linear-gradient(135deg, var(--light-green) 0%, #d1fae5 100%);
  padding: 3rem 0;
  text-align: center;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.archive-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.archive-filters {
  margin-top: 2rem;
}

.filter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.main-content-archive {
  padding: 3rem 0;
}

.archive-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

/* Single Post Layout */
.single-post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

/* Enhanced Content Blocks with Sophisticated Styling */
.content-block {
  background: white;
  border: 1px solid var(--gray-200);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.content-block:hover {
  box-shadow: var(--shadow-soft-lg), 0 8px 25px -8px rgba(5, 150, 105, 0.1);
  border-color: var(--primary-green-200);
  transform: translateY(-2px);
}

.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, rgba(245, 158, 11, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.content-block:hover::before {
  opacity: 1;
}

.content-block-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.content-block-title-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-block-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-green);
}

.content-block-text {
  color: var(--gray-600);
  line-height: 1.6;
}

.bg-light-green {
  background: var(--light-green);
}

.bg-gray-50 {
  background: var(--gray-50);
}

/* Lists */
.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.list-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.numbered-list {
  counter-reset: step-counter;
}

.numbered-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}

.numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-green);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Recipe/Restaurant Meta */
.recipe-header, .restaurant-header {
  text-align: center;
  margin-bottom: 3rem;
}

.recipe-badges, .restaurant-badges {
  margin-bottom: 1rem;
}

.recipe-title, .restaurant-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
}

.recipe-meta-header, .restaurant-meta-header {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  text-align: center;
}

.meta-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-green);
  margin: 0 auto 0.5rem;
}

.meta-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.meta-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cuisine-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cuisine-tag {
  padding: 0.5rem 1rem;
  background: var(--light-green);
  color: var(--primary-green);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 1.25rem;
}

.star.filled {
  color: #fbbf24;
}

.star.empty {
  color: var(--gray-300);
}

/* Nutrition Grid */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.nutrition-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
}

.nutrition-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-green);
}

.nutrition-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-transform: capitalize;
}

/* Rating Breakdown */
.rating-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.rating-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
}

.rating-category {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.rating-value {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Restaurant Details */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.details-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.hour-day {
  font-weight: 500;
  text-transform: capitalize;
}

.hour-time {
  color: var(--gray-600);
}

.specialty-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--light-green);
  color: var(--primary-green);
  border-radius: 1rem;
  font-size: 0.875rem;
  margin: 0.25rem;
}

/* Enhanced Sidebar and Widget Styling */
.sidebar {
  space-y: 2rem;
}

.widget {
  background: white;
  border: 1px solid var(--gray-200);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.widget:hover {
  box-shadow: var(--shadow-soft-lg), 0 8px 25px -8px rgba(5, 150, 105, 0.1);
  border-color: var(--primary-green-200);
  transform: translateY(-3px);
}

.widget::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.widget:hover::after {
  opacity: 1;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid transparent;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-400)) bottom / 100% 3px no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.widget-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  flex-shrink: 0;
}

.widget-about {
  background: linear-gradient(135deg, var(--light-green) 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
}

.widget-text {
  color: var(--gray-600);
  line-height: 1.6;
}

.widget-text p {
  margin-bottom: 1rem;
}

.widget-text p:last-child {
  margin-bottom: 0;
}

/* Enhanced Popular Posts with Modern Number Styling */
.popular-posts {
  counter-reset: post-counter;
}

.popular-posts li {
  counter-increment: post-counter;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.popular-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-posts li:hover {
  padding-left: 4rem;
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.03) 0%, transparent 100%);
  border-radius: var(--radius);
  margin-left: -var(--space-2);
  margin-right: -var(--space-2);
  padding-right: var(--space-2);
}

.popular-posts li::before {
  content: counter(post-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-600));
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.popular-posts li:hover::before {
  transform: scale(1.1);
  box-shadow: var(--shadow-soft-md);
  background: linear-gradient(135deg, var(--primary-green-600), var(--primary-green-700));
}

.list-item-bordered {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.list-item-bordered:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.list-item-title {
  font-weight: 500;
  color: var(--gray-900);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.list-item-title:hover {
  color: var(--primary-green);
}

.list-item-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Social Updates */
.social-updates-list {
  space-y: 1rem;
}

.social-update-item {
  padding: 1rem 0;
}

.social-update-text {
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.social-update-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.social-update-time {
  margin-left: auto;
}

/* Enhanced Footer Styling */
.site-footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, #047857 100%);
  color: #d1fae5;
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-16);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

/* Footer Section Titles */
.footer-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  position: relative;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-2);
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green-400), var(--secondary-orange-400));
  border-radius: 2px;
}

.footer-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--primary-green-300);
  flex-shrink: 0;
}

/* Footer About Section */
.footer-about .footer-description {
  color: #d1fae5;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  font-weight: 300;
}

.footer-stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  flex: 1;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green-300);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.75rem;
  color: #d1fae5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Footer Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  space-y: var(--space-3);
}


.footer-links-list li {
  margin-bottom: var(--space-3);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #d1fae5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  padding: var(--space-2) 0;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: white;
  padding-left: var(--space-4);
  transform: translateX(4px);
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-green-400);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.footer-link:hover::before {
  width: var(--space-3);
}

.link-icon {
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-link:hover .link-icon {
  opacity: 1;
}

/* Enhanced Social Links */
.social-links-enhanced {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: #d1fae5;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
}

.social-instagram:hover {
  background: linear-gradient(135deg, #E4405F, #C13584);
  border-color: #E4405F;
}

.social-facebook:hover {
  background: linear-gradient(135deg, #1877F2, #42A5F5);
  border-color: #1877F2;
}

.social-twitter:hover {
  background: linear-gradient(135deg, #1DA1F2, #0D8BD9);
  border-color: #1DA1F2;
}

.social-youtube:hover {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  border-color: #FF0000;
}

.social-pinterest:hover {
  background: linear-gradient(135deg, #BD081C, #E60023);
  border-color: #BD081C;
}

.social-label {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Enhanced Contact Info */
.contact-info-enhanced {
  margin-bottom: var(--space-8);
  space-y: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin-bottom: var(--space-3);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.contact-item svg {
  color: var(--primary-green-300);
  flex-shrink: 0;
}

.contact-link {
  color: #d1fae5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: white;
}

/* Enhanced Newsletter Signup */
.newsletter-signup-enhanced {
  margin-top: var(--space-6);
}

.newsletter-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-3);
}

.newsletter-title svg {
  color: var(--primary-green-300);
}

.newsletter-description {
  font-size: 0.875rem;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-weight: 300;
}

.newsletter-form-enhanced {
  space-y: var(--space-4);
}

.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-green-300);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.newsletter-input-enhanced {
  flex: 1;
  padding: var(--space-4);
  border: none;
  background: transparent;
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  outline: none;
}

.newsletter-input-enhanced::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.newsletter-submit-btn {
  padding: var(--space-4);
  background: var(--primary-green);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
}

.newsletter-submit-btn:hover {
  background: var(--primary-green-600);
  transform: scale(1.05);
}

.newsletter-submit-btn:active {
  transform: scale(0.95);
}

.newsletter-privacy {
  margin-top: var(--space-3);
}

.newsletter-privacy small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #d1fae5;
  margin: 0;
}

.footer-copyright a {
  color: #d1fae5;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: white;
}

/* Enhanced Form System */
.form-group {
  margin-bottom: var(--space-6);
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.form-label.required::after {
  content: ' *';
  color: var(--accent-red);
  font-weight: 500;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: var(--shadow-inner-soft);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gray-300);
  box-shadow: none;
  transform: translateY(-1px);
}

.form-input:hover, .form-textarea:hover, .form-select:hover {
  border-color: var(--gray-400);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--gray-500);
  font-weight: 400;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: var(--space-10);
}

/* Form States */
.form-input.error, .form-textarea.error, .form-select.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.success, .form-textarea.success, .form-select.success {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--accent-red);
  font-weight: 500;
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--primary-green);
  font-weight: 500;
}

.form-help {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Checkbox and Radio Styling */
.form-checkbox, .form-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  cursor: pointer;
}

.form-checkbox input, .form-radio input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary-green);
}

.form-checkbox label, .form-radio label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
}

/* Input Groups */
.input-group {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-inner-soft);
}

.input-group .form-input {
  border-radius: 0;
  border-right: none;
  box-shadow: none;
}

.input-group .form-input:focus {
  z-index: 10;
  position: relative;
  border-right: 2px solid var(--primary-green);
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  border-left: none;
  color: var(--gray-600);
  font-weight: 500;
  white-space: nowrap;
}

/* Floating Labels */
.form-floating {
  position: relative;
}

.form-floating .form-input, .form-floating .form-textarea {
  padding-top: var(--space-6);
  padding-bottom: var(--space-2);
}

.form-floating .form-label {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
  transition: all 0.3s ease;
  pointer-events: none;
  margin: 0;
}

.form-floating .form-input:focus ~ .form-label,
.form-floating .form-input:not(:placeholder-shown) ~ .form-label,
.form-floating .form-textarea:focus ~ .form-label,
.form-floating .form-textarea:not(:placeholder-shown) ~ .form-label {
  top: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-green);
}

/* Enhanced Responsive Layout System */

/* Tablet and intermediate screen sizes */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }
  
  .nav-menu {
    gap: var(--space-6);
  }
  
  .nav-menu a {
    font-size: 0.8rem;
    padding: var(--space-2) var(--space-3);
  }
  
  /* Tablet Two-Column Layout - Sidebar Below Content */
  .two-column-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
    gap: var(--space-8);
  }

  .single-post-layout,
  .archive-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }
}

/* Mobile Design - Enhanced */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-6);
    width: 100%;
    padding: 0 var(--space-4);
  }
  
  .cards-grid > * {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-menu-toggle {
    display: flex;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .mobile-nav {
    display: none; /* Hide by default on mobile */
    position: fixed;
    top: 0;
    right: -320px; /* Start off-screen */
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-soft-2xl);
    overflow-y: auto;
  }

  .mobile-nav.active {
    display: block;
    right: 0; /* Slide in */
  }

  /* Mobile Menu Header */
  .main-navigation::before {
    content: 'Menu';
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--primary-green);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--gray-200);
    margin: 0;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: var(--space-5) 0;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    background: transparent;
    transform: none;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover,
  .nav-menu a:focus {
    color: var(--primary-green);
    background: var(--primary-green-50);
    padding-left: var(--space-4);
    transform: none;
  }

  .nav-menu a::after {
    display: none;
  }
  
  .nav-menu a[aria-current="page"] {
    color: white;
    background-color: var(--primary-green-700);
    border-radius: 6px;
  }

  /* Enhanced Mobile Menu Overlay */
  .mobile-menu-overlay.active {
    display: block;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.6);
  }

  /* Mobile Header Adjustments */
  .header-branding {
    padding: var(--space-5) 0 var(--space-3);
  }

  .logo-text {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.7rem;
  }

  .header-navigation {
    padding: var(--space-3) 0;
  }

  /* Mobile Hero Section */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-6);
  }

  .search-form {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  /* Mobile Grid Layouts */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Mobile Two-Column Layout - Sidebar Below Content */
  .two-column-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .main-content-area {
    width: 100%;
  }

  .single-post-layout,
  .archive-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Mobile Section Headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Mobile Meta Information */
  .recipe-meta-header,
  .restaurant-meta-header {
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .meta-item {
    flex: 1;
    min-width: 100px;
  }

  /* Mobile Grids */
  .details-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .rating-breakdown-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Mobile Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-links-columns {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .featured-section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .recipe-title,
  .restaurant-title {
    font-size: 2rem;
  }

  .card-content {
    padding: 1rem;
  }

  .content-block {
    padding: 1.5rem;
  }

  .widget {
    padding: 1rem;
  }

  .nutrition-grid {
    grid-template-columns: 1fr;
  }

  .recipe-meta-header,
  .restaurant-meta-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .search-form,
  .btn-primary,
  .btn-secondary,
  .btn-accent,
  .load-more-btn {
    display: none !important;
  }

  .single-post-layout {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  .content-block {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Enhanced Accessibility Styles */
.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 links for keyboard navigation */
.sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--primary-green);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  top: var(--space-4);
  left: var(--space-4);
  box-shadow: var(--shadow-soft-lg);
}

/* Enhanced focus styles for better accessibility - removed outlines */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus,
[tabindex]:focus {
  outline: none !important;
  box-shadow: none !important;
}
  box-shadow: none;
}

/* Custom focus indicator for interactive elements - removed outlines */
.nlc-focused {
  outline: none !important;
  box-shadow: none !important;
}

/* Focus styles for buttons - removed outlines */
.btn:focus {
  outline: none;
  box-shadow: none;
}

/* Focus styles for navigation - removed outlines */
.nav-menu a:focus {
  outline: none;
  background-color: var(--primary-green-50);
  color: var(--primary-green-700);
}

/* Focus styles for form elements */
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.search-input:focus,
.filter-select:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
  border-color: var(--primary-green);
  box-shadow: var(--shadow-glow), var(--shadow-inner-soft), 0 0 0 2px white, 0 0 0 5px var(--primary-green);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-section.has-bg-image::after {
    opacity: 1;
}

.search-tag {
    transition: all 0.3s ease;
}

.search-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-md);
}

.recipe-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft-lg);
}

.recipe-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.print-recipe-btn,
.share-recipe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.print-recipe-btn:hover,
.share-recipe-btn:hover {
    background: var(--primary-green);
    color: white;
}

.recipe-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    font-size: 10rem;
    color: #000;
    white-space: nowrap;
}

.recipe-container {
    max-width: 900px;
    padding: 1rem;
}


/* Focus styles for cards and interactive elements */
.recipe-card:focus-within,
.content-card:focus-within,
.blog-post-preview:focus-within {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
  transform: translateY(-4px);
}

/* Ensure sufficient color contrast for text */
.text-contrast-high {
  color: var(--gray-900);
  font-weight: 500;
}

.bg-contrast-high {
  background-color: var(--gray-900);
  color: white;
}

/* Screen reader announcements */
#nlc-announcer {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Keyboard navigation indicators - removed outlines */
.keyboard-navigation-active *:focus {
  outline: none !important;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000000;
    border: 2px solid #ffffff;
    color: #ffffff;
  }
  
  .btn-primary:hover {
    background: #ffffff;
    color: #000000;
  }
  
  .nav-menu a {
    border: 1px solid transparent;
  }
  
  .nav-menu a:focus,
  .nav-menu a:hover {
    border-color: transparent;
    background: var(--primary-green-50);
    color: var(--primary-green);
  }
  
  .recipe-card,
  .content-card,
  .widget {
    border: 2px solid var(--gray-800);
  }
}

/* Focus management for mobile menu */
.main-navigation.active {
  outline: none;
}

.main-navigation.active a:first-child {
  outline: none;
}

/* Ensure interactive elements have minimum touch target size */
@media (max-width: 768px) {
  .btn,
  .nav-menu a,
  .mobile-menu-toggle,
  .search-button,
  .social-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu a {
    padding: var(--space-4) var(--space-6);
  }
}

/* Improved error and success states for accessibility */
.form-error {
  role: alert;
  aria-live: polite;
}

.form-success {
  role: status;
  aria-live: polite;
}

/* Loading states with accessibility */
.btn-loading {
  aria-label: "Loading, please wait";
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: btn-spin 1s linear infinite;
}

/* Ensure proper heading hierarchy */
.content-area h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.content-area h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-area h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Improve link accessibility */
a:not(.btn):not(.nav-menu a):not(.search-tag) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:not(.btn):not(.nav-menu a):hover {
  text-decoration-thickness: 2px;
}

/* Focus trap for modal/overlay elements */
.focus-trap {
  position: relative;
}

.focus-trap::before,
.focus-trap::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Ensure proper spacing for screen readers */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: var(--primary-green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft-lg);
  color: white;
  clip: auto !important;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: var(--space-2);
  line-height: normal;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  top: var(--space-2);
  width: auto;
  z-index: 100000;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #047857;
    --accent-green: #065f46;
    --gray-600: #374151;
    --gray-700: #1f2937;
    --gray-800: #111827;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #111827;
    --foreground: #f9fafb;
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-300: #6b7280;
    --gray-400: #9ca3af;
    --gray-500: #d1d5db;
    --gray-600: #e5e7eb;
    --gray-700: #f3f4f6;
    --gray-800: #f9fafb;
    --gray-900: #ffffff;
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
  }

  .site-header {
    background: #1f2937;
    border-bottom-color: #374151;
  }

  .recipe-card,
  .content-card,
  .content-block,
  .widget,
  .blog-post-preview {
    background: #1f2937;
    border: 1px solid #374151;
  }

  .search-form {
    background: #1f2937;
  }

  .form-input,
  .form-textarea,
  .newsletter-input {
    background: #374151;
    border-color: #4b5563;
    color: var(--foreground);
  }
}
