/**
 * ThermoGenius v2.0 - Modern Design System
 * Premium Lightweight Food SaaS Design
 * Created: March 10, 2026
 * 
 * Philosophy: Editorial warmth meets modern simplicity
 * Color Story: Coral & Indigo (NO GREEN)
 */

/* ==================================================
   IMPORTS
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600&display=swap');

/* ==================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ================================================== */

:root {
  /* ====== COLORS ====== */
  
  /* Primary Brand Colors (Indigo) */
  --indigo-900: #1a2238;
  --indigo-700: #2d3561;
  --indigo-500: #3f4c8a;
  
  /* Accent Colors (Coral) */
  --coral-600: #ff6b58;
  --coral-500: #ff8573;
  --coral-300: #ffb3a7;
  --coral-100: #ffe8e5;
  
  /* Supporting Warm Tones (Amber/Gold) */
  --amber-600: #d4a574;
  --amber-400: #e8c9a0;
  --amber-100: #faf5ef;
  
  /* Neutral Palette (Warm Grays) */
  --gray-900: #2c2622;
  --gray-700: #4a433d;
  --gray-600: #5f554e;
  --gray-500: #857a71;
  --gray-300: #c8c1ba;
  --gray-200: #dbd7d1;
  --gray-100: #f0ebe6;
  --gray-50: #f9f7f4;
  --white: #ffffff;
  
  /* Semantic Colors */
  --success-600: #2d9596;
  --success-100: #d4f1f1;
  --warning-600: #e5a23d;
  --warning-100: #fef3e6;
  --error-600: #d84848;
  --error-100: #fce8e8;
  --info-600: #4a7c9e;
  --info-100: #e3f0f7;
  
  /* ====== TYPOGRAPHY ====== */
  
  /* Font Families */
  --font-headline: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Crimson Pro', Georgia, serif;
  
  /* Font Sizes */
  --font-size-display: 56px;
  --font-size-h1: 40px;
  --font-size-h2: 28px;
  --font-size-h3: 20px;
  --font-size-body-lg: 18px;
  --font-size-body: 16px;
  --font-size-body-sm: 14px;
  --font-size-label: 13px;
  --font-size-caption: 12px;
  
  /* Line Heights */
  --line-height-display: 1.1;
  --line-height-h1: 1.2;
  --line-height-h2: 1.3;
  --line-height-h3: 1.4;
  --line-height-body: 1.6;
  --line-height-label: 1.4;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* ====== SPACING ====== */
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Semantic Spacing */
  --space-section: var(--space-20);
  --space-component: var(--space-8);
  --space-element: var(--space-4);
  
  /* ====== LAYOUT ====== */
  
  /* Container */
  --container-max-width: 1280px;
  --container-padding-x: 120px;
  --container-padding-x-tablet: 48px;
  --container-padding-x-mobile: 24px;
  
  /* Content Widths */
  --content-narrow: 680px;
  --content-medium: 920px;
  --content-wide: 1280px;
  
  /* ====== VISUAL ELEMENTS ====== */
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(44, 38, 34, 0.05);
  --shadow-sm: 0 2px 4px rgba(44, 38, 34, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 38, 34, 0.08);
  --shadow-lg: 0 12px 24px rgba(44, 38, 34, 0.12);
  --shadow-xl: 0 20px 40px rgba(44, 38, 34, 0.15);
  --shadow-coral: 0 4px 16px rgba(255, 107, 88, 0.25);
  --shadow-indigo: 0 4px 16px rgba(26, 34, 56, 0.2);
  
  /* Gradients */
  --gradient-warm: linear-gradient(135deg, var(--amber-100) 0%, var(--gray-50) 100%);
  --gradient-coral: linear-gradient(135deg, var(--coral-600) 0%, var(--coral-500) 100%);
  --gradient-indigo: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-700) 100%);
  --gradient-overlay-dark: linear-gradient(to top, rgba(26, 34, 56, 0.9) 0%, transparent 100%);
  --gradient-overlay-light: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
  
  /* ====== TRANSITIONS ====== */
  
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  
  /* ====== BREAKPOINTS (for reference) ====== */
  
  /* Use in @media queries:
     --breakpoint-sm: 640px;
     --breakpoint-md: 768px;
     --breakpoint-lg: 1024px;
     --breakpoint-xl: 1280px;
     --breakpoint-2xl: 1536px;
  */
}

/* ==================================================
   BASE & RESET
   ================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--gray-700);
  background-color: var(--gray-50);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--coral-300);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to Main Content */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--indigo-900);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-to-main:focus {
  top: 0;
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.display {
  font-size: var(--font-size-display);
  line-height: var(--line-height-display);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
}

h2, .h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}

h3, .h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-family: var(--font-body);
}

.body-lg {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body);
}

.body-sm {
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-label);
}

.label {
  font-size: var(--font-size-label);
  line-height: var(--line-height-label);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.caption {
  font-size: var(--font-size-caption);
  color: var(--gray-500);
}

.text-accent {
  color: var(--coral-600);
}

.text-primary {
  color: var(--indigo-900);
}

/* ==================================================
   LAYOUT
   ================================================== */

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

.container--narrow {
  max-width: var(--content-narrow);
}

.container--medium {
  max-width: var(--content-medium);
}

.section {
  padding: var(--space-section) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--recipes {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.grid--masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 240px;
  gap: var(--space-6);
}

/* ==================================================
   BUTTONS
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  border: none;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-coral);
  color: var(--white);
  box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 88, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-coral);
}

.btn-secondary {
  background: transparent;
  color: var(--indigo-700);
  border: 2px solid var(--indigo-700);
  padding: 12px 26px;
}

.btn-secondary:hover {
  background: var(--indigo-700);
  color: var(--white);
}

.btn-tertiary {
  background: none;
  border: none;
  color: var(--coral-600);
  padding: 8px 0;
  position: relative;
  font-weight: var(--font-weight-semibold);
}

.btn-tertiary::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.btn-tertiary:hover::after {
  transform: scaleX(1);
}

.btn-pill {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-medium);
}

.btn-pill:hover,
.btn-pill.active {
  background: var(--coral-100);
  color: var(--coral-600);
  border-color: var(--coral-300);
}

.btn--full-width {
  width: 100%;
}

/* ==================================================
   HEADER & NAVIGATION
   ================================================== */

.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header--scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

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

.header__logo {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--indigo-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-coral);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--coral-600);
  border-bottom-color: var(--coral-600);
}

.nav-link.active {
  color: var(--indigo-900);
  font-weight: var(--font-weight-semibold);
  border-bottom-color: var(--indigo-900);
}

.header__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--coral-300);
  cursor: pointer;
  transition: all 0.2s ease;
  object-fit: cover;
}

.header__avatar:hover {
  border-color: var(--coral-600);
  transform: scale(1.05);
}

/* ==================================================
   HERO SECTION
   ================================================== */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: var(--gradient-warm);
  padding: 80px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 88, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(63, 76, 138, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__label {
  display: inline-block;
  background: var(--white);
  color: var(--coral-600);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.hero__title {
  font-family: var(--font-headline);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-display);
  color: var(--indigo-900);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  color: var(--coral-600);
  position: relative;
  display: inline-block;
}

.hero__subtitle {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body);
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================================================
   SECTION HEADERS
   ================================================== */

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header__content {
  max-width: 640px;
}

.section-header__label {
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-semibold);
  color: var(--coral-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-header__title {
  font-family: var(--font-headline);
  font-size: 36px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--indigo-900);
  margin-bottom: 12px;
}

.section-header__subtitle {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--gray-600);
}

.section-header__action {
  color: var(--coral-600);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.section-header__action:hover {
  color: var(--coral-500);
  gap: 12px;
}

/* ==================================================
   RECIPE CARDS
   ================================================== */

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  cursor: pointer;
}

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

.recipe-card__image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.recipe-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.recipe-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--amber-600);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.recipe-card__content {
  padding: 20px;
}

.recipe-card__category {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  color: var(--coral-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.recipe-card__title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: var(--font-size-label);
  color: var(--gray-500);
  font-weight: var(--font-weight-medium);
}

.recipe-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-card__meta-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Featured Recipe Card */
.recipe-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 400px;
}

.recipe-card--featured .recipe-card__image-wrapper {
  aspect-ratio: 16/10;
}

.recipe-card--featured .recipe-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: var(--gradient-overlay-dark);
}

.recipe-card--featured .recipe-card__title {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 16px;
}

.recipe-card--featured .recipe-card__category {
  color: var(--coral-300);
}

.recipe-card--featured .recipe-card__meta {
  color: rgba(255, 255, 255, 0.8);
}

/* ==================================================
   CATEGORY CARDS
   ================================================== */

.category-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-card:hover {
  border-color: var(--coral-300);
  background: var(--coral-100);
  transform: translateX(4px);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--amber-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.category-card:hover .category-card__icon {
  background: var(--coral-300);
  transform: rotate(5deg);
}

.category-card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.category-card__content {
  flex: 1;
}

.category-card__title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: 4px;
}

.category-card__count {
  font-size: var(--font-size-label);
  color: var(--gray-500);
  font-weight: var(--font-weight-medium);
}

.category-card__arrow {
  color: var(--gray-300);
  transition: all 0.25s ease;
  font-size: 20px;
}

.category-card:hover .category-card__arrow {
  color: var(--coral-600);
  transform: translateX(4px);
}

/* ==================================================
   UTILITIES
   ================================================== */

/* Spacing Utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }

.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Animation Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth),
              transform 0.6s var(--ease-smooth);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform 0.3s var(--ease-smooth), 
              box-shadow 0.3s var(--ease-smooth);
}

.hover-lift:hover {
  transform: translateY(-6px);
}

/* Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-100) 0%,
    var(--gray-50) 50%,
    var(--gray-100) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1024px) {
  :root {
    --container-padding-x: var(--container-padding-x-tablet);
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-display: 36px;
    --font-size-h1: 28px;
    --font-size-h2: 22px;
    --font-size-h3: 18px;
    --space-section: var(--space-12);
    --container-padding-x: var(--container-padding-x-mobile);
  }
  
  .header__nav {
    display: none; /* Implement mobile menu */
  }
  
  .hero {
    padding: 48px 0;
  }
  
  .hero__container {
    gap: 32px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .grid--recipes {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .category-card {
    padding: 16px;
  }
  
  .recipe-card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .grid--recipes {
    grid-template-columns: 1fr;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
}

/* ==================================================
   PRINT STYLES
   ================================================== */

@media print {
  .header,
  .footer,
  .btn,
  .nav {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .recipe-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ==================================================
   DARK MODE (Optional)
   ================================================== */

@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode */
  /*
  :root {
    --gray-50: #1a1a1a;
    --gray-100: #2a2a2a;
    --gray-300: #4a4a4a;
    --gray-500: #8a8a8a;
    --gray-700: #cacaca;
    --gray-900: #f0f0f0;
    --white: #0a0a0a;
  }
  */
}
