/* Cozy Hearth CSS Design System & Visual Art Elements */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Font Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Color Palette - Default Light (Cozy Cream & Warm Terracotta) */
  --color-bg-base: hsl(30, 38%, 95%);
  --color-bg-surface: hsl(30, 20%, 98%);
  --color-bg-inset: hsl(30, 15%, 90%);
  --color-border: hsl(30, 15%, 82%);
  --color-text-main: hsl(30, 25%, 15%);
  --color-text-muted: hsl(30, 12%, 40%);
  --color-accent: hsl(16, 75%, 52%);
  --color-accent-hover: hsl(16, 85%, 45%);
  --color-accent-light: hsl(20, 85%, 93%);
  --color-accent-dark: hsl(15, 60%, 30%);

  /* Secondary Accents */
  --color-green: hsl(145, 40%, 40%);
  --color-green-light: hsl(145, 45%, 92%);
  --color-yellow: hsl(42, 90%, 55%);
  --color-yellow-light: hsl(42, 100%, 92%);
  
  /* Box Shadows */
  --shadow-sm: 0 2px 8px -2px hsla(30, 30%, 15%, 0.08);
  --shadow-md: 0 8px 24px -6px hsla(30, 30%, 15%, 0.12);
  --shadow-lg: 0 16px 40px -10px hsla(30, 30%, 15%, 0.16);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Animation Rates */
  --steam-animation-speed: 5s;
  
  /* Live Toppings Variables (Controlled by JS via CSS Custom Properties) */
  --display-ramen-egg: block;
  --display-ramen-greens: block;
  --display-ramen-nori: block;
  --display-ramen-naruto: block;
  --display-cocoa-marsh: block;
  --display-cocoa-cream: none;
  --display-cocoa-cinnamon: block;
  
  /* Art Palette Variables */
  --soup-color: hsl(38, 43%, 50%); /* Default Tonkotsu */
  --mug-color: hsl(15, 45%, 40%); /* Terracotta */
  --toast-filter: brightness(1) sepia(0.2);
  --cheese-pull-scale: scaleY(1);
  --cheese-pull-translate: translateY(0);
}

/* Dark Mode Theme */
body.dark-mode {
  --color-bg-base: hsl(30, 15%, 11%);
  --color-bg-surface: hsl(30, 12%, 15%);
  --color-bg-inset: hsl(30, 10%, 8%);
  --color-border: hsl(30, 10%, 22%);
  --color-text-main: hsl(30, 15%, 90%);
  --color-text-muted: hsl(30, 8%, 68%);
  --color-accent: hsl(20, 80%, 58%);
  --color-accent-hover: hsl(20, 90%, 65%);
  --color-accent-light: hsl(20, 20%, 22%);
  --color-accent-dark: hsl(20, 80%, 85%);
  
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   2. AMBIENT PRESET CLASSES
   -------------------------------------------------------------------------- */
body.preset-cozy-cabin {
  --ambient-hue: 28;
  filter: sepia(0.08);
}
body.preset-midnight-diner {
  background-image: radial-gradient(circle at 10% 20%, rgba(20, 10, 5, 0.15) 0%, transparent 80%);
}
body.preset-cafe-vibes {
  filter: contrast(1.02) brightness(1.01);
}

/* --------------------------------------------------------------------------
   3. RESET & GLOBALS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

/* Focus styles for keyboard accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Utility Containers */
section {
  padding: 5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  background-opacity: 0.9;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-icon {
  font-size: 1.75rem;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.submit-btn {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-weight: 600;
}

.submit-btn::after {
  display: none;
}

.submit-btn:hover {
  background-color: var(--color-accent);
  color: white;
  transform: translateY(-1px);
}

/* Theme Switcher Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-bg-inset);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.theme-toggle-btn:hover {
  background-color: var(--color-border);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

body.light-mode .moon-icon { display: block; }
body.light-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: none; }
body.dark-mode .sun-icon { display: block; }

/* --------------------------------------------------------------------------
   5. HERO & SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.badge {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.food-selector-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.selector-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.selector-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.selector-btn.active {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   6. LIVE CANVAS & SYSTEM WINDOW LAYOUT
   -------------------------------------------------------------------------- */
.showcase-canvas {
  width: 100%;
}

.canvas-window {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.canvas-header {
  background-color: var(--color-bg-inset);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.canvas-header .dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.canvas-header .dot.red { background-color: hsl(0, 75%, 65%); }
.canvas-header .dot.yellow { background-color: hsl(45, 80%, 65%); }
.canvas-header .dot.green { background-color: hsl(120, 60%, 60%); }

.window-title {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--color-text-muted);
}

.canvas-body {
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-inset);
  padding: 2rem;
  transition: background-color 0.4s ease;
}

/* Canvas active layout toggle states */
.art-ramen, .art-cocoa, .art-cheese {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.art-ramen.active, .art-cocoa.active, .art-cheese.active {
  display: flex;
}

/* --------------------------------------------------------------------------
   7. CSS ART: STEAM COMPONENT (Shared)
   -------------------------------------------------------------------------- */
.steam-container {
  position: absolute;
  top: 15%;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: space-around;
  z-index: 10;
  pointer-events: none;
}

.steam-line {
  width: 6px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  filter: blur(4px);
  animation: steam-drift var(--steam-animation-speed) infinite linear;
}

.steam-line.line-2 {
  animation-delay: calc(var(--steam-animation-speed) * -0.33);
}

.steam-line.line-3 {
  animation-delay: calc(var(--steam-animation-speed) * -0.66);
}

body.dark-mode .steam-line {
  background-color: rgba(255, 255, 255, 0.25);
}

@keyframes steam-drift {
  0% {
    transform: translateY(40px) scaleX(0.7) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(0px) scaleX(1.3) translateX(10px);
    opacity: 0.5;
  }
  85% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-40px) scaleX(0.9) translateX(-10px);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   8. CSS ART: STEAMING RAMEN BOWL
   -------------------------------------------------------------------------- */
.ramen-bowl {
  position: relative;
  width: 240px;
  height: 120px;
  margin-top: 50px;
}

.soup-base {
  width: 240px;
  height: 120px;
  background-color: var(--soup-color);
  border-radius: 0 0 120px 120px;
  position: relative;
  overflow: hidden;
  border: 8px solid var(--color-text-main);
  border-top: none;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease;
}

.bowl-lip {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 256px;
  height: 12px;
  background-color: var(--color-text-main);
  border-radius: 99px;
}

.bowl-accent {
  position: absolute;
  bottom: 25px;
  left: 20px;
  width: 200px;
  height: 14px;
  border-bottom: 4px dashed var(--color-accent);
  opacity: 0.65;
}

.bowl-stand {
  position: absolute;
  bottom: -12px;
  left: 80px;
  width: 80px;
  height: 14px;
  background-color: var(--color-text-main);
  border-radius: 0 0 8px 8px;
}

/* Ramen Toppings & Noodles */
.noodles-group {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 220px;
  height: 80px;
}

.noodle {
  position: absolute;
  border: 4px solid var(--color-yellow);
  border-bottom: none;
  border-radius: 120px 120px 0 0;
  animation: noodle-wiggle 4s ease-in-out infinite alternate;
}

.noodle-1 { width: 180px; height: 60px; top: 10px; left: 10px; }
.noodle-2 { width: 140px; height: 50px; top: 15px; left: 30px; }
.noodle-3 { width: 100px; height: 40px; top: 20px; left: 50px; }
.noodle-4 { width: 160px; height: 55px; top: 8px; left: 20px; border-color: hsl(40, 80%, 65%); }
.noodle-5 { width: 120px; height: 45px; top: 12px; left: 40px; border-color: hsl(40, 80%, 65%); }

@keyframes noodle-wiggle {
  0% { transform: scaleY(1) rotate(-1deg); }
  100% { transform: scaleY(1.05) rotate(1deg); }
}

.nori-sheets {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 1;
  display: var(--display-ramen-nori);
}

.nori {
  width: 50px;
  height: 80px;
  background-color: hsl(150, 20%, 14%);
  border-radius: 6px;
  border: 4px solid var(--color-text-main);
}

.nori-1 {
  transform: rotate(-15deg);
  position: absolute;
  top: -40px;
  left: 15px;
}

.nori-2 {
  transform: rotate(-5deg);
  position: absolute;
  top: -45px;
  left: 45px;
}

.topping-egg {
  position: absolute;
  width: 55px;
  height: 40px;
  display: var(--display-ramen-egg);
  z-index: 5;
}

.egg-1 {
  top: 10px;
  left: 40px;
  transform: rotate(-10deg);
}

.egg-2 {
  top: 25px;
  left: 80px;
  transform: rotate(15deg);
}

.egg-white {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 3px solid var(--color-text-main);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.egg-yolk {
  width: 25px;
  height: 25px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  border: 3px solid var(--color-text-main);
  box-shadow: inset -2px -2px 0 var(--color-accent);
}

.topping-naruto {
  position: absolute;
  top: 35px;
  left: 140px;
  width: 44px;
  height: 44px;
  background-color: white;
  border-radius: 50%;
  border: 4px solid var(--color-text-main);
  display: var(--display-ramen-naruto);
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.naruto-spiral {
  width: 20px;
  height: 20px;
  border: 3px solid hsl(330, 85%, 65%);
  border-radius: 50%;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}

.greens-group {
  position: absolute;
  top: 15px;
  right: 35px;
  display: var(--display-ramen-greens);
  z-index: 5;
}

.green-onion {
  width: 12px;
  height: 10px;
  border: 3px solid var(--color-text-main);
  background-color: var(--color-green);
  border-radius: 50%;
  position: absolute;
}

.onion-1 { top: 10px; left: 10px; transform: rotate(15deg); }
.onion-2 { top: 5px; left: 25px; transform: rotate(-30deg); }
.onion-3 { top: 22px; left: 5px; transform: rotate(45deg); }
.onion-4 { top: 18px; left: 22px; transform: rotate(-10deg); }
.onion-5 { top: 30px; left: 18px; transform: rotate(20deg); }

.chopsticks {
  position: absolute;
  top: 20px;
  right: -50px;
  width: 160px;
  height: 20px;
  transform: rotate(-25deg);
}

.chopstick {
  height: 6px;
  background-color: hsl(25, 40%, 35%);
  border: 2px solid var(--color-text-main);
  border-radius: 2px;
  position: absolute;
  width: 100%;
}

.chopstick-1 { top: 0; }
.chopstick-2 { top: 8px; }

/* --------------------------------------------------------------------------
   9. CSS ART: HOT COCOA MUG
   -------------------------------------------------------------------------- */
.mug-container {
  position: relative;
  width: 180px;
  height: 160px;
  margin-top: 30px;
  z-index: 2;
}

.mug-body {
  width: 180px;
  height: 160px;
  background-color: var(--mug-color);
  border-radius: 0 0 50px 50px;
  border: 8px solid var(--color-text-main);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease;
}

.mug-handle {
  width: 60px;
  height: 100px;
  border: 8px solid var(--color-text-main);
  background-color: var(--mug-color);
  border-radius: 30px;
  position: absolute;
  top: 30px;
  right: -42px;
  z-index: -1;
  transition: background-color 0.3s ease;
}

.cocoa-liquid {
  width: 100%;
  height: 45px;
  background-color: hsl(24, 45%, 18%);
  border-bottom: 5px solid hsl(24, 40%, 14%);
  position: relative;
}

.cocoa-cream {
  display: var(--display-cocoa-cream);
  position: absolute;
  top: 5px;
  left: 10px;
  width: 144px;
  height: 25px;
  background-color: white;
  border-radius: 99px;
  border: 3px solid var(--color-text-main);
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

.marshmallows-group {
  display: var(--display-cocoa-marsh);
  position: absolute;
  width: 100%;
  height: 100%;
}

.marshmallow {
  width: 24px;
  height: 24px;
  background-color: hsl(30, 100%, 97%);
  border-radius: 6px;
  border: 3px solid var(--color-text-main);
  position: absolute;
  animation: marsh-bob 3s ease-in-out infinite alternate;
}

.marsh-1 { top: 10px; left: 25px; transform: rotate(15deg); }
.marsh-2 { top: 15px; left: 70px; transform: rotate(-25deg); animation-delay: -0.7s; }
.marsh-3 { top: 8px; left: 110px; transform: rotate(40deg); animation-delay: -1.4s; }

@keyframes marsh-bob {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(3px) rotate(5deg); }
}

.cinnamon-sprinkles {
  display: var(--display-cocoa-cinnamon);
}

.sprinkle {
  width: 4px;
  height: 4px;
  background-color: hsl(24, 50%, 35%);
  border-radius: 50%;
  position: absolute;
}

.sp-1 { top: 25px; left: 55px; }
.sp-2 { top: 12px; left: 95px; }
.sp-3 { top: 30px; left: 120px; }
.sp-4 { top: 20px; left: 40px; }

.saucer {
  width: 240px;
  height: 16px;
  background-color: var(--color-text-main);
  border-radius: 99px;
  position: absolute;
  bottom: -8px;
  z-index: 1;
}

.cinnamon-stick {
  width: 16px;
  height: 140px;
  background-color: hsl(24, 45%, 32%);
  border: 4px solid var(--color-text-main);
  border-radius: 6px;
  position: absolute;
  top: -40px;
  left: 20px;
  transform: rotate(-18deg);
  z-index: 1;
  box-shadow: inset 4px 0 0 hsl(24, 45%, 25%);
}

/* --------------------------------------------------------------------------
   10. CSS ART: MELTED GRILLED CHEESE & SOUP
   -------------------------------------------------------------------------- */
.sandwich-container {
  position: relative;
  width: 180px;
  height: 160px;
  z-index: 5;
}

.plate {
  width: 270px;
  height: 30px;
  background-color: var(--color-text-main);
  border-radius: 50%;
  position: absolute;
  bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plate-inner {
  width: 240px;
  height: 16px;
  background-color: var(--color-bg-surface);
  border-radius: 50%;
}

.bread {
  width: 160px;
  height: 70px;
  background-color: hsl(35, 75%, 70%);
  border-radius: 20px 20px 10px 10px;
  border: 5px solid var(--color-text-main);
  position: relative;
  box-shadow: var(--shadow-sm);
  filter: var(--toast-filter);
  transition: filter 0.3s ease;
}

.bread-crust {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 160px;
  height: 16px;
  background-color: hsl(25, 60%, 40%);
  border-radius: 20px 20px 0 0;
  border: 5px solid var(--color-text-main);
  border-bottom: none;
}

.bread-crumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  position: absolute;
  top: 25px;
  left: 30px;
  box-shadow: 40px 10px 0 rgba(255,255,255,0.25), 80px -5px 0 rgba(255,255,255,0.25);
}

.bread-top {
  transform: rotate(-8deg) translate(-10px, -15px);
  z-index: 5;
}

.bread-bottom {
  transform: rotate(5deg) translate(5px, 15px);
  z-index: 3;
}

.cheese-layer {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 140px;
  height: 60px;
  z-index: 4;
  pointer-events: none;
}

.cheese-melt {
  background-color: var(--color-yellow);
  border: 4px solid var(--color-text-main);
  border-top: none;
  position: absolute;
  width: 30px;
  border-radius: 0 0 15px 15px;
}

.melt-1 { height: 45px; left: 10px; transform: var(--cheese-pull-translate) var(--cheese-pull-scale); transform-origin: top; }
.melt-2 { height: 55px; left: 55px; transform: var(--cheese-pull-translate) var(--cheese-pull-scale); transform-origin: top; }
.melt-3 { height: 35px; left: 95px; transform: var(--cheese-pull-translate) var(--cheese-pull-scale); transform-origin: top; }

.cheese-string {
  position: absolute;
  width: 6px;
  background-color: var(--color-yellow);
  border-left: 2px solid var(--color-text-main);
  border-right: 2px solid var(--color-text-main);
  transform: var(--cheese-pull-translate) var(--cheese-pull-scale);
  transform-origin: top;
}

.string-1 { height: 75px; left: 42px; transform: rotate(15deg); }
.string-2 { height: 70px; left: 88px; transform: rotate(-10deg); }

/* Dipping Tomato Soup Cup */
.soup-dipper {
  position: absolute;
  right: 20px;
  bottom: 40px;
  width: 100px;
  height: 90px;
  z-index: 6;
}

.soup-cup {
  width: 90px;
  height: 80px;
  background-color: var(--color-bg-surface);
  border: 6px solid var(--color-text-main);
  border-radius: 50% 50% 50% 50% / 15% 15% 85% 85%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.tomato-soup {
  width: 100%;
  height: 40px;
  background-color: hsl(8, 75%, 46%);
  border-bottom: 4px solid hsl(8, 70%, 38%);
  position: relative;
}

.parsley-garnish {
  width: 8px;
  height: 8px;
  background-color: var(--color-green);
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 30px;
  box-shadow: 12px 5px 0 var(--color-green), 6px -6px 0 var(--color-green);
}

.cup-handle {
  width: 30px;
  height: 45px;
  border: 6px solid var(--color-text-main);
  border-radius: 12px;
  position: absolute;
  top: 15px;
  right: -5px;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   11. KITCHEN PLAYGROUND STYLING
   -------------------------------------------------------------------------- */
.playground-section {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.playground-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-group h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.presets-buttons {
  display: flex;
  gap: 0.75rem;
}

.preset-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.preset-btn.active, .preset-btn:hover {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Radio broths & toggle sliders */
.broth-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}

.radio-label input {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.radio-label input:checked + .radio-custom {
  border-color: var(--color-accent);
}

.radio-label input:checked + .radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

/* Checkbox Toppings */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  position: absolute;
  top: -1px;
  left: 3px;
}

/* Custom Swatches */
.color-swatches {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.swatch-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.swatch-btn.active {
  border-color: var(--color-text-main);
  transform: scale(1.1);
}

/* Custom Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--color-bg-inset);
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Food controls dynamic hiding */
.food-controls {
  display: none;
  flex-direction: column;
  gap: 2rem;
}

.food-controls.active {
  display: flex;
}

/* Code card Visualizer */
.playground-output {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.code-card {
  background-color: hsl(220, 15%, 12%);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: hsl(220, 10%, 85%);
  font-family: monospace;
  font-size: 0.85rem;
}

.code-header {
  background-color: hsl(220, 15%, 8%);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid hsl(220, 15%, 16%);
}

.code-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(220, 10%, 30%);
}

.code-filename {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: hsl(220, 10%, 60%);
}

.code-body {
  padding: 1.5rem;
  overflow-x: auto;
  line-height: 1.5;
}

.tip-card {
  background-color: var(--color-accent-light);
  color: var(--color-accent-dark);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
}

.tip-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tip-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. THE COMFORT RECIPE VAULT
   -------------------------------------------------------------------------- */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.recipe-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.recipe-card-header {
  background-color: var(--color-bg-inset);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.recipe-emoji {
  font-size: 3rem;
}

.recipe-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.recipe-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.recipe-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recipe-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-main);
}

.recipe-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.recipe-btn-action {
  background-color: var(--color-accent);
  color: white;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.recipe-btn-action:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   13. SHARE YOUR COMFORT FORM
   -------------------------------------------------------------------------- */
.share-section {
  max-width: 900px;
  margin: 0 auto;
}

.share-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.share-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.share-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.share-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.form-row-three {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.5fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
  outline: none;
}

.submit-form-btn {
  background-color: var(--color-text-main);
  color: var(--color-bg-surface);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
}

.submit-form-btn:hover {
  background-color: var(--color-accent);
  color: white;
}

/* --------------------------------------------------------------------------
   14. INTERACTIVE RECIPE DETAIL DRAWER
   -------------------------------------------------------------------------- */
.recipe-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  align-items: stretch;
}

.recipe-drawer.open {
  display: flex;
}

.drawer-overlay {
  flex: 1;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  animation: fade-in 0.3s ease forwards;
}

.drawer-content {
  width: 480px;
  background-color: var(--color-bg-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drawer-emoji {
  font-size: 2.2rem;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.drawer-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.drawer-close-btn {
  font-size: 2rem;
  color: var(--color-text-muted);
}

.drawer-close-btn:hover {
  color: var(--color-text-main);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.drawer-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.drawer-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.section-tip {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Ingredients Checklist */
.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ing-item-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.ing-item-label input {
  display: none;
}

.ing-item-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.ing-item-label input:checked + .ing-item-checkbox {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

.ing-item-label input:checked + .ing-item-checkbox::after {
  content: '✓';
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
}

.ing-item-text {
  font-size: 0.95rem;
}

.ing-item-label input:checked ~ .ing-item-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* Step Cooking Tracker Card */
.step-card {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.step-content {
  font-size: 1rem;
  line-height: 1.5;
  min-height: 80px;
}

.step-navigation {
  display: flex;
  gap: 1rem;
}

.step-nav-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

.step-nav-btn.prev {
  background-color: var(--color-bg-inset);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.step-nav-btn.next {
  background-color: var(--color-text-main);
  color: var(--color-bg-surface);
}

.step-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-container p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVENESS & BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .playground-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .showcase-canvas {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    display: none; /* simple burger menu fallback or hide for space */
  }
  
  .form-row-two, .form-row-three {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .share-card {
    padding: 1.5rem;
  }
  
  .drawer-content {
    width: 100vw;
  }
}
