/* SipEasy Website - Design System CSS */
/* Based on the app's "Futurist bar lab + neon luxe" theme */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Colors - Matching Brand.Color from DesignTokens.swift */
  --color-background: #0A0A0A;        /* Deep black */
  --color-surface: #1A1A1A;           /* Surface layer */
  --color-surface-secondary: #1F1F1F; /* Secondary surface */
  --color-surface-tertiary: #2A2A2A;  /* Tertiary surface */
  --color-card-background: #1E1E1E;   /* Card background */
  /* Core brand accents */
  --color-teal: #00F5D4;              /* Electric Teal */
  --color-cyan: #00D4FF;              /* Bright Cyan */
  --color-pink: #FF2E92;              /* Neon Pink */
  --color-purple: #8B5CF6;            /* Purple accent */
  --color-blue: #00D9FF;              /* Bright Blue */
  --color-green: #A8FF00;             /* Neon lime green */
  --color-yellow: #FFB800;            /* Warning yellow */
  --color-red: #FF3B30;               /* Error red */
  --color-silver: #C0C0C0;            /* Silver accent */
  --color-text-primary: #FFFFFF;      /* White text */
  --color-text-secondary: #B0B0B0;    /* Secondary text */
  --color-text-tertiary: #808080;     /* Tertiary text */
  --color-success: #A8FF00;
  --color-warning: #FFB800;
  --color-error: #FF3B30;
  --color-border: #333333;            /* Border color */
  --color-border-accent: rgba(0, 245, 212, 0.3); /* Accent border */
  --color-border-subtle: #2A2A2A;     /* Subtle border */
  
  /* Spacing - Matching Brand.Space */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-huge: 48px;
  --space-massive: 64px;
  
  /* Radii - Matching Brand.Radii */
  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --radius-xxl: 32px;
  
  /* Shadows - Matching Brand.Shadow */
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-neon: 0 0 12px rgba(0, 245, 212, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 245, 212, 0.3);
  --shadow-teal-glow: 0 0 15px rgba(0, 245, 212, 0.6);
  --shadow-pink-glow: 0 0 14px rgba(255, 46, 146, 0.35);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
  
  /* Typography - Using Figtree font */
  --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Text cursor (caret) color across site */
input,
textarea,
[contenteditable="true"] {
  caret-color: var(--color-cyan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-m);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--space-m);
  color: var(--color-text-secondary);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card Component - Matching GlassCard.swift */
.glass-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card.elevated {
  background: var(--color-surface-secondary);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: var(--shadow-card);
}

.glass-card.subtle {
  background: rgba(26, 26, 26, 0.5);
  border-color: var(--color-border-subtle);
  box-shadow: none;
}

/* Button Component - Matching NeonButton.swift */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 44px; /* Minimum tap target */
  justify-content: center;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  color: var(--color-background);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-surface-tertiary);
  color: var(--color-cyan);
  border: 1px solid var(--color-border-accent);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-neon);
}

.btn-large {
  padding: 16px 24px;
  font-size: 18px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  color: var(--color-text-primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  display: block;
  object-fit: contain;
}

.logo-text {
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: var(--space-l);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-cyan);
}

.nav-link.active {
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-cyan);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Navigation Menu */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
}

.nav-mobile-menu.active {
  display: block;
}

.nav-mobile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.nav-mobile-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--color-surface);
  border-left: 1px solid rgba(0, 245, 212, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.nav-mobile-menu.active .nav-mobile-content {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 245, 212, 0.1);
}

.nav-mobile-title {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.nav-mobile-close {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.nav-mobile-close:hover {
  color: var(--color-teal);
}

.nav-mobile-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 245, 212, 0.05);
  transition: color var(--transition-fast);
}

.nav-mobile-link:hover {
  color: var(--color-teal);
}

.nav-mobile-link.active {
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border-accent);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-cyan);
  margin-bottom: var(--space-l);
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-l);
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-m);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-cyan);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Screenshot Carousel */
.screenshot-carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 600px; /* Fixed height for proper image display */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--color-cyan);
  box-shadow: var(--shadow-neon);
}

.dot:hover {
  background: var(--color-cyan);
  transform: scale(1.2);
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, var(--color-surface-tertiary), var(--color-surface));
  border-radius: 40px;
  padding: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  border: 1px solid var(--color-border-subtle);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-background);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.app-preview {
  padding: var(--space-l);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

.preview-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.preview-title {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-size: 16px;
}

.shaker-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.preview-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
}

.card-header {
  margin-bottom: var(--space-m);
}

.card-title {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.card-badge {
  font-size: 12px;
  color: var(--color-teal);
  background: rgba(0, 245, 212, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.card-drinks {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.drink-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-s);
  border: 1px solid var(--color-border-subtle);
}

.drink-icon {
  font-size: 20px;
}

/* App Screen Components */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-normal);
  object-fit: contain;
  object-position: top;
  border-radius: 30px;
}

.app-screen.active {
  opacity: 1;
  transform: translateX(0);
}

/* Ensure images fit properly within phone screen */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: transparent; /* Ensure no background is hiding images */
}

/* Screenshot-specific styles removed since we're using actual images */

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  margin-bottom: var(--space-m);
}

.section-description {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  align-items: stretch;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: var(--shadow-neon);
  background: var(--color-surface-secondary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 0 var(--space-l) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 212, 0.08);
  border-radius: 50%;
  border: 1px solid var(--color-border-accent);
  flex-shrink: 0;
}
/* SF Symbols SVG icon styling */
.feature-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-icon svg * {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 var(--space-m) 0;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* AI Badge and Featured Card */
.feature-card.featured {
  position: relative;
}

.claude-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-teal), #00D4B8);
  color: var(--color-background);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-m) 0;
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.3);
  animation: pulse-glow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.3);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.5);
  }
}


/* FAQ Section */
.faq {
  background: var(--color-surface);
  padding: var(--space-xl) 0;
}

.faq-accordion {
  max-width: 800px;
  margin: var(--space-l) auto 0;
}

.faq-item {
  background: var(--color-card-background);
  border-radius: var(--radius-m);
  border: 1px solid rgba(0, 245, 212, 0.1);
  margin-bottom: var(--space-m);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-soft);
}

.faq-item:hover {
  border-color: rgba(0, 245, 212, 0.3);
  box-shadow: var(--shadow-teal-glow);
  transform: translateY(-2px);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  text-align: left;
  padding: var(--space-l);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
  line-height: 1.4;
  position: relative;
}

.faq-question:hover {
  color: var(--color-teal);
}

.faq-question:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: -2px;
  border-radius: var(--radius-m);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-teal);
  background: rgba(0, 245, 212, 0.05);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-teal);
}

.faq-icon {
  transition: transform var(--transition-normal), color var(--transition-normal);
  flex-shrink: 0;
  margin-left: var(--space-s);
  color: var(--color-text-secondary);
}

.faq-answer {
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-normal), padding var(--transition-normal), opacity var(--transition-normal);
  background: rgba(0, 245, 212, 0.02);
}

.faq-answer[aria-hidden="false"] {
  max-height: 300px;
  padding: var(--space-l);
  opacity: 1;
}

.faq-answer p {
  margin: 0;
}

/* Recipe Categories */
.recipe-categories {
  padding: var(--space-xl) 0;
  background: var(--color-background);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-l);
}

.category-card {
  background: var(--color-card-background);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  text-align: center;
  border: 1px solid rgba(0, 245, 212, 0.1);
  transition: var(--transition-normal);
}

.category-card:hover {
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal-glow);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: var(--space-m);
}

.category-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  font-size: 1.25rem;
}

.category-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-m);
  line-height: 1.6;
}

/* Featured Recipes */
.featured-recipes {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-l);
}

.recipe-card {
  background: var(--color-card-background);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.1);
  transition: var(--transition-normal);
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 245, 212, 0.3);
}

.recipe-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-badge {
  position: absolute;
  top: var(--space-s);
  right: var(--space-s);
  background: var(--color-teal);
  color: var(--color-background);
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-s);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.recipe-content {
  padding: var(--space-l);
}

.recipe-content h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  font-size: 1.25rem;
}

.recipe-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-m);
  line-height: 1.6;
}

.recipe-meta {
  display: flex;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.difficulty, .time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Recipe Hero */
.recipe-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.recipe-breadcrumb {
  margin-bottom: var(--space-l);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.recipe-breadcrumb a {
  color: var(--color-teal);
  text-decoration: none;
}

.recipe-breadcrumb a:hover {
  text-decoration: underline;
}

.recipe-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.recipe-title {
  color: var(--color-text-primary);
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-m);
  line-height: 1.2;
}

.recipe-description {
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.recipe-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.recipe-stats .stat {
  text-align: center;
}

.recipe-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-teal);
  margin-bottom: var(--space-xs);
}

.recipe-stats .stat-label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* Download Section */
.download {
  padding: 100px 0;
  background: var(--color-surface);
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download-title {
  margin-bottom: var(--space-m);
}

.download-description {
  font-size: 18px;
  margin-bottom: var(--space-xl);
}

.download-actions {
  margin-bottom: var(--space-xl);
}

.download-info {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-weight: var(--font-weight-medium);
}

.info-icon {
  font-size: 20px;
}

/* Footer */
.footer {
  background: var(--color-background);
  padding: 60px 0 30px;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.footer-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
  font-size: 16px;
}

.footer-column a {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-s);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: var(--space-xs);
}

/* Recipe Collection Page Styles */

.recipe-collection-header {
  padding: 100px 0 var(--space-xl);
  background: var(--color-background);
  text-align: center;
}

.recipe-collection-header h1 {
  color: var(--color-text-primary);
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-m);
}

.recipe-collection-header p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.recipe-filters {
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  margin-bottom: var(--space-l);
}

.search-box input {
  width: 100%;
  padding: var(--space-m);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-s);
  background: var(--color-card-background);
  color: var(--color-text-primary);
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.2);
}

.filter-buttons {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: var(--space-s) var(--space-m);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-s);
  background: var(--color-card-background);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  color: white;
  border-color: transparent;
}

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

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-l);
  padding: 0 var(--space-m);
}

.loading-spinner,
.error-container,
.no-recipes {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 245, 212, 0.3);
  border-top: 3px solid var(--color-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-m);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    order: 2; /* Show after content on mobile */
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
  }
  
  .hero-content {
    order: 1; /* Show first on mobile */
  }
  
  .screenshot-carousel {
    max-width: 280px; /* Slightly smaller for mobile */
    margin: 0 auto; /* Center the carousel */
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-l);
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
    margin: 0 auto;
    max-width: none;
  }
  
  .footer-logo {
    justify-content: center;
    margin: 0 auto var(--space-m);
  }
  
  .footer-description {
    text-align: center;
    margin: 0 auto;
  }
  
  .download-info {
    flex-direction: column;
    gap: var(--space-m);
  }
  
  /* Recipe Collection Mobile */
  .recipe-collection-header {
    padding: 80px 0 var(--space-l); /* Reduced padding */
  }
  
  .recipe-collection-header h1 {
    font-size: 2rem; /* Smaller title */
  }
  
  .recipe-collection-header p {
    font-size: 1rem; /* Smaller description */
  }
  
  .recipe-filters {
    padding: 0 var(--space-s); /* Added padding */
  }
  
  .search-box input {
    padding: var(--space-s); /* Reduced padding */
    font-size: 0.95rem; /* Slightly smaller text */
  }
  
  .filter-buttons {
    gap: var(--space-xs); /* Reduced gap */
    justify-content: flex-start; /* Left align on mobile */
  }
  
  .filter-btn {
    padding: var(--space-xs) var(--space-s); /* Reduced padding */
    font-size: 0.8rem; /* Smaller text */
  }
  
  .recipe-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: var(--space-m); /* Reduced gap */
    padding: 0 var(--space-s); /* Reduced padding */
  }
  
  .recipe-grid-section {
    padding: 0 0 var(--space-l); /* Reduced padding */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-s);
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .features {
    padding: 80px 0;
  }
  
  .faq-accordion {
    margin: var(--space-m) auto 0;
  }
  
  .faq-question {
    font-size: 1.1rem;
    padding: var(--space-m);
  }
  
  .faq-answer[aria-hidden="false"] {
    padding: var(--space-m);
    opacity: 1;
  }
  
  .download {
    padding: 80px 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  /* Recipe Collection Extra Small Mobile */
  .recipe-collection-header {
    padding: 60px 0 var(--space-m); /* Minimal padding */
  }
  
  .recipe-collection-header h1 {
    font-size: 1.75rem; /* Smaller title */
  }
  
  .recipe-collection-header p {
    font-size: 0.95rem; /* Smaller description */
  }
  
  .recipe-filters {
    padding: 0 var(--space-xs); /* Minimal padding */
  }
  
  .search-box input {
    padding: var(--space-xs); /* Minimal padding */
    font-size: 0.9rem; /* Smaller text */
  }
  
  .filter-btn {
    padding: var(--space-xs); /* Minimal padding */
    font-size: 0.75rem; /* Smaller text */
  }
  
  .recipe-grid {
    gap: var(--space-s); /* Minimal gap */
    padding: 0 var(--space-xs); /* Minimal padding */
  }
  
  .recipe-grid-section {
    padding: 0 0 var(--space-m); /* Minimal padding */
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-teal-glow); }
  50% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.6); }
}

.phone-mockup {
  animation: float 6s ease-in-out infinite;
}

.btn-primary {
  animation: glow 3s ease-in-out infinite;
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-column a:focus {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}


.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-content h1 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  font-size: 2.5rem;
}

.last-updated {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.legal-content h2 {
  color: var(--color-cyan);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-m);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color-border-accent);
  padding-bottom: var(--space-s);
}

.legal-content h3 {
  color: var(--color-text-primary);
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
  font-size: 1.25rem;
}

.legal-content ul {
  margin-left: var(--space-l);
  margin-bottom: var(--space-m);
}

.legal-content li {
  margin-bottom: var(--space-s);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-content strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.legal-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border-accent);
  text-align: center;
}

.legal-actions {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  margin-top: var(--space-l);
  flex-wrap: wrap;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    border-width: 2px;
  }

  .btn {
    border-width: 2px;
  }

  .legal-content {
    border-width: 2px;
  }
}

/* ============================================
   Recipe Detail Page (Worker-rendered)
   Scoped under .recipe-page to avoid conflicts
   with existing card/hero styles above
   ============================================ */

.recipe-page {
  padding-top: 80px;
  min-height: 100vh;
  background: #0A0A0A;
}

.recipe-page .recipe-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.recipe-page .recipe-header-nav {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recipe-page .recipe-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.recipe-page .recipe-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-page .recipe-content {
  padding: 16px;
}

.recipe-page .recipe-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
  line-height: 1.2;
  font-family: var(--font-family);
}

.recipe-page .recipe-description {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 500;
  font-style: italic;
  font-family: var(--font-family);
}

.recipe-page .recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.recipe-page .tag-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-family);
}

.recipe-page .tag-chip.type-cocktail {
  background: #8B5CF6;
  color: #FFFFFF;
}

.recipe-page .tag-chip.type-mocktail {
  background: #A8FF00;
  color: #0A0A0A;
}

.recipe-page .tag-chip.flavor {
  background: #FF2E92;
  color: #FFFFFF;
}

.recipe-page .tag-chip.theme {
  background: rgba(26, 26, 26, 0.5);
  color: #FFFFFF;
}

.recipe-page .recipe-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.recipe-page .stat-card {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  background: rgba(26, 26, 26, 0.5);
  border-radius: 12px;
}

.recipe-page .stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recipe-page .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #B0B0B0;
  font-family: var(--font-family);
}

.recipe-page .stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  font-family: var(--font-family);
}

.recipe-page .recipe-section {
  margin-bottom: 24px;
}

.recipe-page .recipe-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #FFFFFF;
  font-family: var(--font-family);
}

.recipe-page .ingredients-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-page .ingredients-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(26, 26, 26, 0.3);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-family);
}

.recipe-page .ingredient-name {
  flex: 1;
  text-transform: capitalize;
}

.recipe-page .ingredient-amount {
  color: #B0B0B0;
  font-weight: 500;
  margin-left: 12px;
}

.recipe-page .instructions-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-page .instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-family: var(--font-family);
}

.recipe-page .instruction-number {
  color: #00D4FF;
  font-weight: 600;
  font-size: 16px;
  min-width: 24px;
  flex-shrink: 0;
}

.recipe-page .instruction-text {
  flex: 1;
}

.recipe-page .back-link {
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family);
}

.recipe-page .back-link:hover {
  color: #00D4FF;
}

.recipe-page .back-link-icon {
  margin-right: 8px;
  font-size: 18px;
}

@media (min-width: 768px) {
  .recipe-page .recipe-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .recipe-page .recipe-content {
    padding: 16px 24px;
  }

  .recipe-page .recipe-header-nav {
    padding: 16px 24px;
  }
}

/* ============================================
   Recipe Listing Page (Worker-rendered)
   Scoped under .recipes-page to avoid conflicts
   ============================================ */

.recipes-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.recipes-page .recipes-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.recipes-page .recipes-header h1 {
  margin-bottom: var(--space-m);
}

.recipes-page .recipes-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.recipes-page .recipes-loading {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

.recipes-page .recipes-error {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

.recipes-page .recipes-error h3 {
  color: var(--color-error);
  margin-bottom: var(--space-m);
}

.recipes-page .recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.recipes-page .recipe-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.recipes-page .recipe-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: var(--shadow-neon);
}

.recipes-page .recipe-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 48px;
}

.recipes-page .recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipes-page .recipe-content {
  padding: var(--space-l);
}

.recipes-page .recipe-theme {
  display: inline-block;
  background: rgba(0, 245, 212, 0.1);
  color: var(--color-teal);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-s);
}

.recipes-page .recipe-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  font-size: 1.25rem;
}

.recipes-page .recipe-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipes-page .no-recipes {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

.recipes-page .no-recipes h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
}

@media (max-width: 768px) {
  .recipes-page .recipes-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Recipes Listing Page — Toolbar, Skeleton,
   Enhanced Cards (scoped under .recipes-page)
   ============================================ */

/* --- Toolbar --- */
.recipes-page .recipes-toolbar {
  margin-bottom: var(--space-xl);
}

.recipes-page .search-row {
  margin-bottom: var(--space-m);
}

.recipes-page .search-input-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.recipes-page .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.recipes-page .search-input-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: var(--font-family);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.recipes-page .search-input-wrap input::placeholder {
  color: var(--color-text-tertiary);
}

.recipes-page .search-input-wrap input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

/* Filter row */
.recipes-page .filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
  flex-wrap: wrap;
}

/* Segmented type toggle */
.recipes-page .type-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.recipes-page .type-btn {
  padding: 8px 18px;
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recipes-page .type-btn + .type-btn {
  border-left: 1px solid var(--color-border-accent);
}

.recipes-page .type-btn:hover {
  background: rgba(0, 245, 212, 0.08);
  color: var(--color-text-primary);
}

.recipes-page .type-btn.active {
  background: var(--color-teal);
  color: var(--color-background);
  font-weight: var(--font-weight-semibold);
}

/* Sort dropdown */
.recipes-page .sort-select-wrap {
  position: relative;
  display: inline-block;
}

.recipes-page .sort-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-secondary);
  pointer-events: none;
}

.recipes-page .sort-select {
  padding: 8px 34px 8px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.recipes-page .sort-select:focus {
  outline: none;
  border-color: var(--color-teal);
}

/* Theme chips */
.recipes-page .theme-chips-row {
  display: flex;
  gap: var(--space-s);
  overflow-x: auto;
  padding-bottom: var(--space-s);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.recipes-page .theme-chips-row::-webkit-scrollbar {
  display: none;
}

.recipes-page .theme-chip {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--color-border-accent);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.recipes-page .theme-chip:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.recipes-page .theme-chip.active {
  background: var(--color-teal);
  color: var(--color-background);
  border-color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

/* Recipe count */
.recipes-page .recipe-count {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-s);
}

/* --- Skeleton Cards --- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.recipes-page .skeleton-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.recipes-page .skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, var(--color-surface-secondary) 25%, var(--color-surface-tertiary) 50%, var(--color-surface-secondary) 75%);
  background-size: 800px 200px;
  animation: shimmer 1.5s infinite linear;
}

.recipes-page .skeleton-body {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipes-page .skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-surface-secondary) 25%, var(--color-surface-tertiary) 50%, var(--color-surface-secondary) 75%);
  background-size: 800px 14px;
  animation: shimmer 1.5s infinite linear;
}

.recipes-page .skeleton-line.w60 { width: 60%; }
.recipes-page .skeleton-line.w80 { width: 80%; }
.recipes-page .skeleton-line.w40 { width: 40%; }

/* --- Enhanced Card Styles --- */

/* Type badge overlaid on image */
.recipes-page .card-type-badge {
  position: absolute;
  top: var(--space-s);
  right: var(--space-s);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

.recipes-page .card-type-badge.cocktail {
  background: var(--color-purple);
  color: #FFFFFF;
}

.recipes-page .card-type-badge.mocktail {
  background: var(--color-green);
  color: var(--color-background);
}

/* Recipe image — position relative for badge */
.recipes-page .recipe-image {
  position: relative;
}

/* Image fade-in */
.recipes-page .recipe-image img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.recipes-page .recipe-image img.loaded {
  opacity: 1;
}

/* Emoji fallback */
.recipes-page .emoji-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 48px;
  background: var(--color-surface-secondary);
}

/* Card meta row */
.recipes-page .card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

/* Difficulty dots */
.recipes-page .difficulty-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recipes-page .difficulty-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-surface-tertiary);
  transition: none;
}

.recipes-page .difficulty-dots .dot:hover {
  transform: none;
  background: var(--color-surface-tertiary);
}

.recipes-page .difficulty-dots .dot.filled {
  background: var(--color-teal);
  box-shadow: 0 0 6px rgba(0, 245, 212, 0.5);
}

.recipes-page .difficulty-dots .dot.filled:hover {
  background: var(--color-teal);
}

/* Calorie text */
.recipes-page .cal-text {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .recipes-page .filter-row {
    flex-direction: column;
    gap: var(--space-s);
  }

  .recipes-page .type-toggle {
    width: 100%;
    display: flex;
  }

  .recipes-page .type-btn {
    flex: 1;
    text-align: center;
  }

  .recipes-page .sort-select {
    width: 100%;
  }

  .recipes-page .search-input-wrap {
    max-width: 100%;
  }
}
