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

:root {
  /* Colors */
  --color-primary: #9C27B0;      /* Deep purple */
  --color-primary-light: #E1BEE7; /* Light purple */
  --color-primary-dark: #6A1B9A;  /* Dark purple */

  --color-secondary: #E91E63;     /* Pink */
  --color-secondary-light: #F8BBD9; /* Light pink */
  --color-secondary-dark: #C2185B; /* Dark pink */

  --color-accent: #FF6EC7;        /* Bright pink */
  --color-accent-light: #FFB3E6;  /* Light bright pink */

  --color-neutral-100: #1A1A1A;   /* Very dark gray */
  --color-neutral-200: #2D2D2D;   /* Dark gray */
  --color-neutral-300: #404040;   /* Medium dark gray */
  --color-neutral-400: #555555;   /* Medium gray */
  --color-neutral-500: #707070;   /* Gray */
  --color-neutral-600: #B0B0B0;   /* Light gray */
  --color-neutral-700: #D0D0D0;   /* Very light gray */
  --color-neutral-800: #F0F0F0;   /* Almost white */

  --color-white: #000000;
  --color-black: #FFFFFF;

  --color-dark-bg: #0F0F0F;       /* Deep dark background */
  --color-card-bg: #1F1F1F;      /* Card background */

  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-heading: 'Playfair Display', Georgia, serif;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --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 */

  /* Border radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

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

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-neutral-800);
  background-color: var(--color-dark-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.text-center {
  text-align: center;
}

.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;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-600);
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 50%,
    rgba(106, 27, 154, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.header.is-active {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px);
}

.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.navigation {
  padding: var(--space-5) 0;
  position: relative;
}

.navigation::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  z-index: 0;
}

.navigation__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.navigation__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-family-primary);
}

.navigation__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transition: left var(--transition-slow);
}

.navigation__link:hover::before {
  left: 100%;
}

.navigation__link:hover,
.navigation__link--is-active {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navigation__link--is-active {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.12) 100%
  );
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ========================================
   MAIN CONTENT & LAYOUT
   ======================================== */

.main-content {
  margin-top: 0; /* Remove gap - hero section will start right after header */
}

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

.hero-section {
  background: linear-gradient(135deg,
    var(--color-primary-light) 0%,
    var(--color-primary) 50%,
    var(--color-secondary) 100%
  );
  color: var(--color-white);
  padding: calc(100px + var(--space-20)) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" fill-opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg,
    var(--color-neutral-100) 0%,
    var(--color-neutral-200) 20%,
    var(--color-primary-light) 80%,
    var(--color-secondary-light) 100%
  );
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
  color: var(--color-neutral-800);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.photo-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

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

.photo-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}

.photo-card:hover .photo-wrapper img {
  transform: scale(1.05);
}

.photo-content {
  padding: var(--space-6);
}

.photo-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.photo-content p {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-600);
  margin-bottom: 0;
}

/* ========================================
   PRESERVE PAGES LAYOUT
   ======================================== */

.search-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
  padding: calc(100px + var(--space-8)) var(--space-6) var(--space-10);
  background: linear-gradient(180deg,
    var(--color-primary-dark) 0%,
    rgba(106, 27, 154, 0.8) 20%,
    var(--color-neutral-200) 50%,
    var(--color-neutral-100) 100%
  );
  border-bottom: 2px solid rgba(156, 39, 176, 0.1);
  margin-top: 0;
  position: relative;
}


.search-box {
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 1;
  justify-self: start;
}

.heading {
  flex: 1;
  text-align: center;
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  position: relative;
  z-index: 1;
}

.preserve-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 500px));
  justify-content: center;
  align-items: start;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(135deg,
    var(--color-neutral-100) 0%,
    var(--color-neutral-200) 100%
  );
  min-height: calc(100vh - 200px);
}

.content {
  background: linear-gradient(135deg,
    var(--color-card-bg) 0%,
    rgba(31, 31, 31, 0.95) 100%
  );
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(156, 39, 176, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
}

.content:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(156, 39, 176, 0.2),
    0 0 20px rgba(156, 39, 176, 0.1);
}

.content h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-2xl);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(156, 39, 176, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(156, 39, 176, 0.1);
}

.recipe-meta-item {
  text-align: center;
}

.recipe-meta-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}

.recipe-meta-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700);
}

.recipe-description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-6);
}

.photo {
  text-align: center;
  margin-top: var(--space-8);
}

.photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.photo img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.content-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: var(--space-6);
}

.content-actions .pdf-export-btn {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  margin: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 90px;
}

.content-actions .pdf-export-btn:hover {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-width: 90px;
  margin: 0;
  flex: 1;
}

.btn {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pdf-export-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-8);
  margin-top: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.pdf-export-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.recipebutton {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  min-width: 90px;
  margin: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.recipebutton:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   RECIPE PAGES
   ======================================== */

.recipe-header {
  background: linear-gradient(180deg,
    var(--color-primary-dark) 0%,
    rgba(106, 27, 154, 0.8) 20%,
    var(--color-neutral-200) 60%,
    var(--color-neutral-100) 100%
  );
  padding: calc(100px + var(--space-12)) var(--space-6) var(--space-8);
  text-align: center;
  position: relative;
}

.recipe-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="recipe-dots" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="0.8" fill="%23ffffff" fill-opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23recipe-dots)"/></svg>');
  pointer-events: none;
}

.recipe-title {
  color: var(--color-primary);
  font-size: var(--font-size-5xl);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-8) 0;
  text-align: center;
  line-height: var(--line-height-tight);
  position: relative;
  z-index: 1;
}

/* Modern Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(156, 39, 176, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(156, 39, 176, 0.2);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: rgba(156, 39, 176, 0.2);
  border-color: var(--color-primary);
  transform: translateX(-4px);
}

.back-button:active {
  transform: translateX(-2px);
}

.back-button i {
  font-size: var(--font-size-xs);
  transition: transform 0.2s ease;
}

.back-button:hover i {
  transform: translateX(-2px);
}

/* Main Recipe Title */
.recipe-title-main {
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-8) 0;
  padding-bottom: var(--space-4);
  border-bottom: 3px solid rgba(156, 39, 176, 0.2);
  position: relative;
}

.recipe-title-main::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Legacy support - keep for compatibility */
.recipe-header-inline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.recipe-header-inline .recipe-title {
  margin: 0;
  flex: 1;
  text-align: left;
}

.recipe-header-inline .recipebutton {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 12px;
  width: auto;
  min-width: auto;
  height: 28px;
  line-height: 1;
  flex: none;
}

.recipe-container {
  background: linear-gradient(135deg,
    var(--color-neutral-100) 0%,
    var(--color-neutral-200) 100%
  );
  min-height: calc(100vh - 200px);
  padding: calc(100px + var(--space-8)) var(--space-8) var(--space-8);
}

.recipediv {
  background: linear-gradient(135deg,
    var(--color-card-bg) 0%,
    rgba(31, 31, 31, 0.95) 100%
  );
  margin: 0 auto;
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(156, 39, 176, 0.1);
  max-width: 900px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.recipediv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
}

.recipediv h2 {
  color: var(--color-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid rgba(156, 39, 176, 0.2);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  position: relative;
}

.recipediv h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.recipediv h2:first-child {
  margin-top: 0;
}

.recipediv h3 {
  color: var(--color-secondary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.recipediv p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-600);
  font-size: var(--font-size-base);
}

.recipe-back-button {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(156, 39, 176, 0.1);
}

.recipe-ingredients {
  background: rgba(156, 39, 176, 0.03);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  border: 1px solid rgba(156, 39, 176, 0.1);
}

.recipe-method {
  margin-top: var(--space-8);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.v-select {
  border-radius: var(--radius-lg) !important;
}

.v-select .vs__dropdown-toggle {
  border: 2px solid var(--color-neutral-300) !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-2) var(--space-4) !important;
  transition: var(--transition-fast) !important;
  background-color: #ffffff !important;
}

.v-select.vs--open .vs__dropdown-toggle {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1) !important;
}

.v-select .vs__search {
  font-size: var(--font-size-sm) !important;
  padding: var(--space-2) 0 !important;
  color: #000000 !important;
}

.v-select .vs__search::placeholder {
  color: #666666 !important;
}

.v-select .vs__selected {
  color: #000000 !important;
}

.v-select .vs__dropdown-menu {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--color-neutral-200) !important;
  margin-top: var(--space-1) !important;
}

.v-select .vs__dropdown-option {
  padding: var(--space-3) var(--space-4) !important;
  font-size: var(--font-size-sm) !important;
  transition: var(--transition-fast) !important;
  color: #000000 !important;
}

.v-select .vs__dropdown-option--highlight {
  background: var(--color-primary-light) !important;
  color: var(--color-white) !important;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

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

  .navigation__list {
    gap: var(--space-1);
  }

  .navigation__link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    letter-spacing: 0.3px;
  }

  .search-container {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }

  .search-box {
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .heading {
    margin-left: 0;
  }

  .preserve-container {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .recipediv {
    margin: var(--space-4);
    padding: var(--space-6);
  }

  .recipe-title {
    font-size: var(--font-size-2xl);
    margin: calc(100px + var(--space-4)) var(--space-4) var(--space-4);
  }

  .recipe-header-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .recipe-header-inline .recipe-title {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: calc(100px + var(--space-12)) 0 var(--space-10);
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .navigation__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn,
  .recipebutton {
    min-width: auto;
    width: 100%;
    margin: var(--space-1) 0;
  }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-card {
  animation: fadeInUp 0.6s ease-out;
}

.content {
  animation: fadeInUp 0.6s ease-out;
}

.photo-card:nth-child(1) { animation-delay: 0.1s; }
.photo-card:nth-child(2) { animation-delay: 0.2s; }
.photo-card:nth-child(3) { animation-delay: 0.3s; }
.photo-card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
.v-select:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #000000;
    --color-neutral-600: #000000;
  }
}