/* ============================================
   COOKME – INDIAN COOKING WEBSITE
   Full CSS with 3D Animations & Premium UI
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --saffron:    #ff9933;
  --spice-red:  #e63946;
  --turmeric:   #f4c430;
  --deep-green: #2a9d8f;
  --cream:      #fff8f0;
  --dark:       #1a0a00;
  --dark-card:  #1f0f05;
  --text:       #3d1f00;
  --text-light: #7a5230;
  --white:      #ffffff;
  --gradient:   linear-gradient(135deg, #ff9933 0%, #e63946 60%, #c77dff 100%);
  --card-bg:    rgba(255,255,255,0.06);
  --nav-h:      72px;
  --radius:     16px;
  --radius-lg:  28px;
  --shadow-sm:  0 4px 24px rgba(230,57,70,0.10);
  --shadow-md:  0 8px 40px rgba(230,57,70,0.18);
  --shadow-lg:  0 20px 60px rgba(230,57,70,0.25);
  --trans:      0.35s cubic-bezier(0.34,1.56,0.64,1);
  --trans-fast: 0.18s ease;

  /* ── Warm paragraph colour palette ── */
  --p-high:   #f0d9c0;   /* headings, strong text         */
  --p-mid:    #d4a574;   /* body paragraphs, descriptions */
  --p-soft:   #b8895a;   /* secondary / meta text         */
  --p-muted:  #8a6040;   /* placeholders, fine print      */
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  background: #0d0500;
  color: var(--white);
  overflow-x: hidden;
}

/* Bright, reliable cursors (no SVG url — SVG cursors fail/hide in many browsers) */
html,
body {
  cursor: auto !important;
}

a,
button,
[role="button"],
.rcard,
.recipe-card,
.cat-card,
.spice-orb,
.filter-tab,
.open-recipe,
.btn,
.cuisine-pill,
input[type="submit"],
summary {
  cursor: pointer !important;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================
   LEGACY DOT CURSOR (off — SVG cursors used)
   ============================================ */
#cursor,
#cursor-follower {
  display: none !important;
}

/* ============================================
   LOADER
   ============================================ */
#loader {
  position: fixed; inset: 0;
  background: #0d0500;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-pot {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  width: 100px; height: 120px;
}

.loader-img {
  width: 80px;
  animation: potBounce 1.2s ease-in-out infinite;
}

.steam {
  position: absolute;
  width: 8px; height: 30px;
  background: linear-gradient(to top, var(--saffron), transparent);
  border-radius: 50%;
  animation: steamRise 1.6s ease-in-out infinite;
  opacity: 0;
}
.steam.s1 { left: 25%; top: 0; animation-delay: 0s; }
.steam.s2 { left: 50%; transform: translateX(-50%); top: -8px; animation-delay: 0.4s; }
.steam.s3 { right: 20%; top: 0; animation-delay: 0.8s; }

@keyframes steamRise {
  0%   { opacity: 0; transform: translateY(0) scaleX(1); }
  40%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-40px) scaleX(1.6); }
}

@keyframes potBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.loader-text {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--saffron);
  font-size: 1.1rem;
  animation: fadeInOut 1.6s ease infinite;
}

@keyframes fadeInOut {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 5vw, 64px);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(13,5,0,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(255,153,51,0.12);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--white);
}

.logo em { color: var(--saffron); font-style: normal; }

.logo-img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 0 8px var(--saffron));
  animation: logoPulse 3s ease infinite;
}

@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 8px var(--saffron)); }
  50%      { filter: drop-shadow(0 0 18px var(--saffron)); }
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
}

.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--p-high);
  position: relative; padding-bottom: 4px;
  transition: color var(--trans-fast);
}

.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--saffron);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-cta {
  padding: 8px 22px;
  background: var(--saffron);
  color: var(--dark);
  border-radius: 50px;
  font-weight: 600;
  transition: transform var(--trans), box-shadow var(--trans);
}

.nav-links a.nav-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(255,153,51,0.5);
  color: var(--dark);
}

.nav-links a.nav-cta::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: auto; padding: 8px;
}

.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(13,5,0,0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.18,1);
  z-index: 999;
  border-bottom: 1px solid rgba(255,153,51,0.2);
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav ul {
  display: flex; flex-direction: column; gap: 20px;
}

.mob-link {
  font-size: 1.1rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  display: block; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.2s;
}
.mob-link:hover { color: var(--saffron); padding-left: 8px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: transform var(--trans), box-shadow var(--trans), background 0.3s;
  position: relative; overflow: hidden;
  cursor: auto;
}

.btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}

.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-3px) scale(1.03); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,153,51,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(255,153,51,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron); }

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  background: rgba(255,153,51,0.15);
  color: var(--saffron);
  border-radius: 50px;
}
.btn-sm:hover { background: var(--saffron); color: var(--dark); }

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
section {
  padding: clamp(60px, 10vw, 120px) clamp(16px, 6vw, 80px);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem; color: var(--p-mid);
  max-width: 560px; margin: 0 auto;
  line-height: 1.75;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: calc(var(--nav-h) + 40px);
  background: radial-gradient(ellipse at 70% 50%, rgba(255,153,51,0.08) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(230,57,70,0.06) 0%, transparent 60%),
              #0d0500;
  overflow: hidden;
}

/* Floating particles */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}

.spice-particle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size); height: var(--size);
  background: var(--color);
  border-radius: 50%;
  opacity: 0.25;
  animation: particleFloat var(--d) ease-in-out infinite;
}

@keyframes particleFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50%      { transform: translateY(-30px) rotate(180deg); opacity: 0.35; }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--saffron);
  background: rgba(255,153,51,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,153,51,0.25);
  animation: fadeSlideDown 0.8s ease both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.9s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--p-mid);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 36px;
  animation: fadeSlideDown 1s ease 0.2s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 52px;
  animation: fadeSlideDown 1.1s ease 0.3s both;
}

.hero-stats {
  display: flex; align-items: center; gap: 28px;
  animation: fadeSlideDown 1.2s ease 0.4s both;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--saffron);
  display: inline;
}

.stat span { font-size: 1.4rem; color: var(--saffron); }

.stat p {
  font-size: 0.78rem;
  color: var(--p-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 3D Dish Card */
.hero-3d-card {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  perspective: 800px;
  animation: fadeSlideDown 1s ease 0.5s both;
}

.card-3d-inner {
  width: clamp(280px, 35vw, 460px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(255,153,51,0.25), rgba(230,57,70,0.12), rgba(13,5,0,0.85));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,153,51,0.25);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: float3D 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(255,153,51,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
  transform-style: preserve-3d;
}

@keyframes float3D {
  0%,100% { transform: translateY(0) rotateX(4deg) rotateY(-6deg); box-shadow: 0 20px 60px rgba(255,153,51,0.2); }
  33%      { transform: translateY(-18px) rotateX(-2deg) rotateY(4deg); box-shadow: 0 40px 80px rgba(255,153,51,0.28); }
  66%      { transform: translateY(-8px) rotateX(6deg) rotateY(8deg); box-shadow: 0 30px 70px rgba(255,153,51,0.24); }
}

.dish-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(255,153,51,0.3) 0%, transparent 65%);
  border-radius: 50%;
  animation: dishGlow 4s ease infinite;
}

@keyframes dishGlow {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.1); }
}

.hero-dish-img {
  width: 60%; height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255,153,51,0.4));
  animation: dishSpin 20s linear infinite;
}

@keyframes dishSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.dish-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--saffron);
  color: var(--dark);
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 14px; border-radius: 50px;
  letter-spacing: 0.06em;
  animation: badgePop 2s ease 1.5s both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: fadeIn 1.5s ease 2s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--saffron));
  animation: scrollPulse 1.8s ease infinite;
}

.scroll-dot {
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.7); }
  50%      { opacity: 1; transform: scaleY(1); }
}

@keyframes scrollDot {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ============================================
   TICKER
   ============================================ */
.ticker-wrap {
  overflow: hidden;
  background: rgba(255,153,51,0.1);
  border-top: 1px solid rgba(255,153,51,0.2);
  border-bottom: 1px solid rgba(255,153,51,0.2);
  padding: 14px 0;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker span {
  font-size: 0.9rem; font-weight: 500;
  color: var(--p-mid);
  margin: 0 24px;
}

.ticker span:nth-child(even) { color: var(--saffron); margin: 0 12px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   CATEGORIES  — Glassmorphism
   ============================================ */

/* Glowing blobs behind the section for the glass to blur against */
#categories {
  background: #0d0500;
  position: relative;
  overflow: hidden;
}

#categories::before,
#categories::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

#categories::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #ff9933, #e63946);
  top: -120px; left: -100px;
}

#categories::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #c77dff, #2a9d8f);
  bottom: -100px; right: -80px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ---- Glass Card ---- */
.cat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0;
  overflow: hidden;
  cursor: auto;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

/* Shimmer highlight line at top */
.cat-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.55) 50%,
    transparent 100%);
  border-radius: 50%;
  z-index: 2;
}

/* Inner light reflection blob */
.cat-card::after {
  content: '';
  position: absolute; top: -40px; left: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.5s ease;
  opacity: 0.6;
}

.cat-card:hover,
.cat-card:focus {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  outline: none;
}

.cat-card:hover::after,
.cat-card:focus::after {
  opacity: 1;
  transform: scale(1.3);
}

/* ---- Card Inner ---- */
.cat-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px 20px;
  flex: 1;
  position: relative; z-index: 1;
  text-align: center;
}

/* ---- Emoji Circle ---- */
.cat-icon-bubble {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease,
              background 0.3s;
}

.cat-card:hover .cat-icon-bubble,
.cat-card:focus .cat-icon-bubble {
  transform: translateY(-6px) scale(1.15) rotate(-8deg);
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

/* ---- Text ---- */
.cat-text {
  display: flex; flex-direction: column; align-items: center;
}

.cat-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.cat-text p {
  font-size: 0.8rem;
  color: var(--p-soft);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---- Footer ---- */
.cat-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 18px;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-count {
  font-size: 0.73rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 14px; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s;
}

.cat-card:hover .cat-count,
.cat-card:focus .cat-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cat-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, color 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.cat-card:hover .cat-arrow,
.cat-card:focus .cat-arrow {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateX(4px);
  border-color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FEATURED RECIPES
   ============================================ */
.featured-section { background: #0f0600; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  max-width: 1200px; margin: 0 auto;
}

.recipe-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,153,51,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color 0.3s;
  cursor: auto;
}

.recipe-card:hover, .recipe-card:focus {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,153,51,0.3);
  outline: none;
}

.big-card { grid-row: span 2; display: flex; flex-direction: column; }

.recipe-img-wrap {
  position: relative;
  background: radial-gradient(circle at 40% 40%, rgba(255,153,51,0.2), rgba(230,57,70,0.1), #1a0a00);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.big-card .recipe-img-wrap { height: 260px; }
.recipe-card:not(.big-card) .recipe-img-wrap { height: 140px; }

.recipe-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 16px rgba(255,153,51,0.4));
  transition: transform var(--trans);
}

.big-emoji { font-size: 6rem; }

.recipe-card:hover .recipe-emoji { transform: scale(1.15) rotate(-6deg); }

.recipe-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 16px;
  opacity: 0; transition: opacity 0.3s;
}

.recipe-card:hover .recipe-overlay { opacity: 1; }

.save-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}

.save-btn:hover { background: var(--saffron); color: var(--dark); }

.recipe-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--saffron);
  color: var(--dark);
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe-body {
  padding: 20px;
  flex: 1; display: flex; flex-direction: column;
}

.recipe-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: var(--p-soft);
  margin-bottom: 10px;
}

.recipe-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; margin-bottom: 8px;
}

.big-card .recipe-body h3 { font-size: 1.7rem; }

.recipe-body p {
  font-size: 0.87rem; color: var(--p-mid);
  line-height: 1.7; margin-bottom: 16px; flex: 1;
}

.recipe-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}

.recipe-rating {
  font-size: 0.82rem; color: var(--p-soft);
}

.stars { color: var(--turmeric); letter-spacing: 1px; }

/* ============================================
   SPICE SECTION
   ============================================ */
.spice-section {
  background: radial-gradient(ellipse at center, rgba(255,153,51,0.07) 0%, #0d0500 70%);
}

.spice-wheel-container {
  display: flex;
  align-items: center; justify-content: center;
  gap: clamp(40px, 8vw, 100px);
  flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto;
}

.spice-wheel {
  position: relative;
  width: 320px; height: 320px;
  flex-shrink: 0;
}

.spice-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,153,51,0.25);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 500;
  text-align: center; gap: 4px;
  cursor: auto;
  transform: translate(-50%,-50%)
    rotate(var(--angle))
    translateX(130px)
    rotate(calc(-1 * var(--angle)));
  transition: transform var(--trans), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: orbPulse 4s ease infinite;
}

.spice-orb:nth-child(1) { animation-delay: 0s; }
.spice-orb:nth-child(2) { animation-delay: 0.6s; }
.spice-orb:nth-child(3) { animation-delay: 1.2s; }
.spice-orb:nth-child(4) { animation-delay: 1.8s; }
.spice-orb:nth-child(5) { animation-delay: 2.4s; }
.spice-orb:nth-child(6) { animation-delay: 3.0s; }

@keyframes orbPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,153,51,0); }
  50%      { box-shadow: 0 0 16px 2px rgba(255,153,51,0.25); }
}

.spice-orb:hover, .spice-orb:focus,
.spice-orb.active {
  background: rgba(255,153,51,0.15);
  border-color: var(--saffron);
  box-shadow: 0 0 24px rgba(255,153,51,0.4);
  outline: none;
  transform: translate(-50%,-50%)
    rotate(var(--angle))
    translateX(130px)
    rotate(calc(-1 * var(--angle)))
    scale(1.18);
}

.spice-icon { font-size: 1.6rem; }

.spice-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,153,51,0.2), transparent);
  border-radius: 50%; border: 1px solid rgba(255,153,51,0.3);
  display: flex; align-items: center; justify-content: center;
  animation: centerRotate 20s linear infinite;
}

.spice-center-img { width: 48px; object-fit: contain; }

@keyframes centerRotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.spice-info {
  max-width: 380px;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,153,51,0.15);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex; align-items: center;
  transition: border-color 0.3s;
}

.spice-info-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--saffron);
  margin-bottom: 12px;
}

.spice-info-inner p {
  font-size: 0.9rem;
  color: var(--p-mid);
  line-height: 1.75; margin-bottom: 16px;
}

.spice-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.spice-tag {
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  background: rgba(255,153,51,0.12);
  color: var(--saffron);
  border: 1px solid rgba(255,153,51,0.25);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section { background: #0a0400; }

.steps-container {
  display: flex;
  align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px; margin: 0 auto;
}

.step {
  flex: 1; min-width: 200px; max-width: 260px;
  text-align: center; padding: 36px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,153,51,0.1);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--trans), box-shadow var(--trans), border-color 0.3s;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,153,51,0.3);
}

.step-num {
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700;
  color: rgba(255,153,51,0.08);
  line-height: 1;
  user-select: none;
}

.step-icon {
  font-size: 3rem; margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(255,153,51,0.3));
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; margin-bottom: 10px;
}

.step p {
  font-size: 0.85rem; color: var(--p-mid); line-height: 1.7;
}

.step-arrow {
  font-size: 2rem; color: rgba(255,153,51,0.4);
  flex-shrink: 0;
}

/* ============================================
   COMMUNITY / TESTIMONIALS
   ============================================ */
.community-section { background: #0d0500; overflow: hidden; }

.testimonials-track {
  overflow: hidden;
  max-width: 1100px; margin: 0 auto 24px;
  cursor: grab;
}

.testimonials-track:active { cursor: grabbing; }

.testimonials-inner {
  display: flex; gap: 24px;
  transition: transform 0.5s cubic-bezier(0.77,0,0.18,1);
}

.testimonial-card {
  min-width: 320px; max-width: 360px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,153,51,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--trans), box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.t-avatar {
  font-size: 2.8rem; margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--p-high);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card blockquote::before { content: '"'; color: var(--saffron); font-size: 2rem; line-height: 0; vertical-align: -0.5em; margin-right: 4px; }

.testimonial-card footer {
  font-size: 0.8rem; color: var(--saffron); font-weight: 600;
}

.testimonial-dots {
  display: flex; justify-content: center; gap: 8px;
}

.t-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: auto;
  transition: background 0.3s, transform 0.3s;
}

.t-dot.active {
  background: var(--saffron);
  transform: scale(1.3);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: radial-gradient(ellipse at center, rgba(255,153,51,0.1) 0%, #0d0500 65%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-glow {
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,153,51,0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: glowPulse 5s ease infinite;
}

@keyframes glowPulse {
  0%,100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.newsletter-content { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }

.newsletter-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.newsletter-content > p {
  color: var(--p-mid);
  font-size: 1rem; margin-bottom: 36px;
  line-height: 1.75;
}

.nl-form {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.nl-form input {
  flex: 1; min-width: 240px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,153,51,0.25);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nl-form input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.15);
}

.nl-form input::placeholder { color: var(--p-muted); }

.nl-note {
  font-size: 0.85rem; color: var(--deep-green); min-height: 20px;
  font-weight: 500;
}

.nl-trust {
  font-size: 0.78rem; color: var(--p-muted); margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #070300;
  border-top: 1px solid rgba(255,153,51,0.1);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 6vw, 80px) 24px;
}

.footer-top {
  display: flex; flex-wrap: wrap; gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.87rem;
  color: var(--p-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}

.social-links {
  display: flex; gap: 14px;
}

.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,153,51,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.3s, transform var(--trans), border-color 0.3s;
}

.social-links a:hover {
  background: rgba(255,153,51,0.15);
  border-color: var(--saffron);
  transform: translateY(-4px) scale(1.1);
}

.footer-links {
  display: flex; flex-wrap: wrap; gap: 40px; flex: 1;
}

.footer-col h4 {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--saffron); margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.87rem;
  color: var(--p-soft);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--p-muted);
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--saffron); }

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--saffron);
  color: var(--dark);
  border-radius: 50%;
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,153,51,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, transform var(--trans);
  z-index: 900;
}

#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px) scale(1.1); }

/* ============================================
   ANIMATIONS UTILITY
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stagger reveal delays for grid children */
.categories-grid .cat-card:nth-child(1) { transition-delay: 0s; }
.categories-grid .cat-card:nth-child(2) { transition-delay: 0.08s; }
.categories-grid .cat-card:nth-child(3) { transition-delay: 0.16s; }
.categories-grid .cat-card:nth-child(4) { transition-delay: 0.24s; }
.categories-grid .cat-card:nth-child(5) { transition-delay: 0.32s; }
.categories-grid .cat-card:nth-child(6) { transition-delay: 0.40s; }

.featured-grid .recipe-card:nth-child(1) { transition-delay: 0s; }
.featured-grid .recipe-card:nth-child(2) { transition-delay: 0.1s; }
.featured-grid .recipe-card:nth-child(3) { transition-delay: 0.2s; }
.featured-grid .recipe-card:nth-child(4) { transition-delay: 0.3s; }

.steps-container .step:nth-child(1) { transition-delay: 0s; }
.steps-container .step:nth-child(3) { transition-delay: 0.12s; }
.steps-container .step:nth-child(5) { transition-delay: 0.24s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 80px;
  }

  .hero-content { order: 2; }
  .hero-3d-card { order: 1; }

  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .big-card { grid-row: auto; }

  .spice-wheel-container { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .steps-container { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.8rem; }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================
   ALL RECIPES SECTION
   ============================================ */
.all-recipes-section { background: #0a0300; }

/* --- Toolbar --- */
.recipes-toolbar {
  max-width: 1200px; margin: 0 auto 28px;
  display: flex; flex-direction: column; gap: 20px;
}

.search-wrap {
  position: relative;
  max-width: 480px;
}

.search-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem; pointer-events: none;
}

#recipeSearch {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,153,51,0.25);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#recipeSearch:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.12);
}

#recipeSearch::placeholder { color: var(--p-muted); }

.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,153,51,0.15);
  color: var(--p-mid);
  cursor: auto;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.filter-tab:hover {
  background: rgba(255,153,51,0.1);
  color: var(--white);
  border-color: rgba(255,153,51,0.35);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--saffron);
  color: var(--dark);
  border-color: var(--saffron);
}

/* Recipe count line */
.recipes-count {
  max-width: 1200px; margin: 0 auto 32px;
  font-size: 0.85rem; color: var(--p-soft);
}

.recipes-count strong { color: var(--saffron); }

/* --- Recipes Grid --- */
.recipes-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px; margin: 0 auto;
}

/* Popular right now (homepage Wave 1) */
.popular-now-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}
.popular-now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popular-now-list li {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,153,51,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--cream, #e8d5c0);
  line-height: 1.55;
  font-size: 0.98rem;
}
.popular-now-list a {
  color: #ff9933;
  font-weight: 600;
  text-decoration: none;
}
.popular-now-list a:hover,
.popular-now-list a:focus {
  text-decoration: underline;
}

/* Recipe Card */
.rcard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,153,51,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: auto;
  display: flex; flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-color 0.3s, opacity 0.4s;
}

.rcard:hover, .rcard:focus {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,153,51,0.35);
  outline: none;
}

.rcard.hidden-recipe {
  display: none;
}

.rcard-img {
  position: relative;
  height: 130px;
  background: radial-gradient(circle at 40% 40%, rgba(255,153,51,0.18), rgba(230,57,70,0.08), #1a0a00);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.rcard-img .rcard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans);
}
.rcard:hover .rcard-img .rcard-photo,
.rcard:focus .rcard-img .rcard-photo {
  transform: scale(1.06);
}

.rcard-img span:first-child {
  filter: drop-shadow(0 4px 14px rgba(255,153,51,0.35));
  transition: transform var(--trans);
}

.rcard:hover .rcard-img span:first-child,
.rcard:focus .rcard-img span:first-child {
  transform: scale(1.2) rotate(-8deg);
}

.rcard-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--saffron);
  color: var(--dark);
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.rcard-body {
  padding: 18px; flex: 1;
  display: flex; flex-direction: column;
}

.rcard-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.72rem; color: var(--p-soft);
  margin-bottom: 8px;
}

.rcard-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; margin-bottom: 6px;
  color: var(--white);
}

.rcard-body p {
  font-size: 0.82rem;
  color: var(--p-mid);
  line-height: 1.65;
  flex: 1; margin-bottom: 14px;
}

.rcard-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--p-muted);
  font-size: 1rem;
  max-width: 1200px; margin: 0 auto;
}

/* ============================================
   RECIPE MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #140700;
  border: 1px solid rgba(255,153,51,0.25);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 40px 100px rgba(255,153,51,0.15);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,153,51,0.3) transparent;
}

.modal-overlay.visible .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(255,153,51,0.3); border-radius: 3px; }

.modal-close {
  position: sticky; top: 16px; float: right;
  margin: 16px 16px 0 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  cursor: auto; z-index: 1;
}

.modal-close:hover { background: var(--spice-red); transform: rotate(90deg); }

.modal-header {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(255,153,51,0.1);
  clear: both;
}

.modal-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 6px 18px rgba(255,153,51,0.4));
  flex-shrink: 0;
  animation: modalEmojiFloat 4s ease-in-out infinite;
}

@keyframes modalEmojiFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.modal-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,153,51,0.15);
  color: var(--saffron);
  border: 1px solid rgba(255,153,51,0.3);
  padding: 3px 12px; border-radius: 50px;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-quick-info {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: var(--p-soft);
}

.modal-quick-info span {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 12px; border-radius: 50px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding: 28px 32px;
}

.modal-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--saffron);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,153,51,0.15);
}

.ingredients-list {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none;
}

.ingredients-list li {
  font-size: 0.875rem;
  color: var(--p-high);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.ingredients-list li::before {
  content: '•';
  position: absolute; left: 0;
  color: var(--saffron);
  font-weight: 700;
}

.steps-list {
  display: flex; flex-direction: column; gap: 16px;
  list-style: none; counter-reset: step-counter;
}

.steps-list li {
  font-size: 0.875rem;
  color: var(--p-mid);
  line-height: 1.75;
  padding-left: 40px;
  position: relative;
  counter-increment: step-counter;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  background: rgba(255,153,51,0.15);
  border: 1px solid rgba(255,153,51,0.3);
  border-radius: 50%;
  font-size: 0.72rem; font-weight: 700;
  color: var(--saffron);
  display: flex; align-items: center; justify-content: center;
}

.modal-tip {
  margin: 0 32px 28px;
  background: rgba(42,157,143,0.08);
  border: 1px solid rgba(42,157,143,0.25);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.82rem;
  color: var(--p-mid);
  line-height: 1.7;
}

/* Responsive modal */
@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-header { flex-direction: column; }
  .modal-header { padding: 24px 20px 18px; }
  .modal-body { padding: 20px; gap: 24px; }
  .modal-tip { margin: 0 20px 20px; }
}

/* Responsive recipes grid */
@media (max-width: 600px) {
  .recipes-main-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .recipes-main-grid { grid-template-columns: 1fr; }
}

/* ===== Cuisine hub pages (match homepage system) ===== */
.cuisine-hub { padding-top: calc(var(--nav-h) + 12px); }
.cuisine-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.cuisine-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 8px 0 16px;
  color: #fff;
}
.cuisine-lead {
  max-width: 720px;
  color: var(--p-mid);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
}
.cuisine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}
.cuisine-pill {
  border: 1px solid rgba(255,153,51,.35);
  background: rgba(255,153,51,.08);
  color: #f5e6d3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  transition: background .2s, border-color .2s;
}
.cuisine-pill:hover,
.cuisine-pill.active {
  background: rgba(255,153,51,.22);
  border-color: var(--saffron);
  color: #fff;
}
.nav-links a.is-active { color: var(--saffron); }
.cuisine-story {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.cuisine-story p {
  color: var(--p-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.cuisine-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 18px;
}
.cuisine-note {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,153,51,.2);
  border-radius: 16px;
  padding: 16px 18px;
}
.cuisine-note h3 {
  font-family: 'Playfair Display', serif;
  color: var(--saffron);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.cuisine-note p { margin: 0; color: var(--p-soft); font-size: .92rem; }
.cuisine-source {
  font-size: .82rem;
  color: var(--p-muted);
  border-left: 3px solid rgba(255,153,51,.4);
  padding-left: 12px;
  margin-top: 8px;
}
.cuisine-recipes { padding: 20px 24px 80px; }
.cuisine-hub .breadcrumb { color: var(--p-soft); margin-bottom: 8px; }
.cuisine-hub .breadcrumb a { color: var(--saffron); }
@media (max-width: 900px) {
  .cuisine-notes { grid-template-columns: 1fr; }
}

