/* ==========================================================================
   PROVENCE BBQ DIGITAL MENU - ULTRA-MINIMALIST ENGINE
   Supports Mobile, iPad, 8:00 PM Automatic Sunset Fade & 10-Second Press
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Marcellus&family=Plus+Jakarta+Sans:wght@300;400&display=swap');

:root {
  /* Default Dynamic Color Tokens */
  --bg-color: #f7f2ea;
  --bg-radial: radial-gradient(circle at 50% 40%, #faf6f0 0%, #ebe2d3 80%);
  --text-gold: #b85d28;
  --text-main: #2a1f19;
  --text-muted: #6e5e52;
  --text-accent: #9e5b2e;
  --divider-color: #d89b65;
  --particle-glow: rgba(184, 93, 40, 0.5);
  --silhouette-color: rgba(179, 89, 37, 0.15);
  
  /* Typography */
  --font-title: 'Marcellus', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --theme-transition: background-color 2s ease, color 2s ease, border-color 2s ease, fill 2s ease, opacity 2s ease;
}

/* Light Theme */
body.mode-light {
  --bg-color: #f7f2ea;
  --bg-radial: radial-gradient(circle at 50% 40%, #faf6f0 0%, #ebe2d3 85%);
  --text-gold: #b35925;
  --text-main: #2b1f1a;
  --text-muted: #665548;
  --text-accent: #944e21;
  --divider-color: rgba(179, 89, 37, 0.4);
  --particle-glow: rgba(179, 89, 37, 0.4);
  --silhouette-color: rgba(179, 89, 37, 0.14);
}

/* Dark Theme */
body.mode-dark {
  --bg-color: #0c0806;
  --bg-radial: radial-gradient(circle at 50% 50%, #170f0b 0%, #0c0806 80%);
  --text-gold: #e2c079;
  --text-main: #f5efe6;
  --text-muted: #a69888;
  --text-accent: #cfa868;
  --divider-color: rgba(226, 192, 121, 0.5);
  --particle-glow: rgba(226, 192, 121, 0.7);
  --silhouette-color: rgba(226, 192, 121, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
}

/* Locked Viewport Container */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-radial);
  overflow: hidden;
  cursor: pointer;
  transition: var(--theme-transition);
}

/* Background Mont Ventoux Silhouette Layer */
.silhouette-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  max-height: 280px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.silhouette-svg {
  width: 100%;
  height: 100%;
  fill: var(--silhouette-color);
  transition: var(--theme-transition);
}

/* Floating Warm Ember Particles Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Main Content Container */
.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 820px;
  height: 100%;
  max-height: 100dvh;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stages */
.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.98);
  width: 92%;
  max-width: 780px;
  max-height: 85vh;
  padding: 1.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
  scrollbar-width: none;
}

.stage::-webkit-scrollbar {
  display: none;
}

.stage.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Typography & Divider Line */
.course-tag {
  font-family: var(--font-title);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 1rem;
  transition: color 1.5s ease;
}

.dish-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  transition: color 1.5s ease;
}

.gold-divider {
  width: 45px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--divider-color), transparent);
  margin: 0 auto 1.5rem auto;
  transition: background 1.5s ease, opacity 0.8s ease, filter 0.8s ease;
}

.dish-desc {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 1.8rem auto;
  transition: color 1.5s ease;
}

.wine-line {
  font-family: var(--font-title);
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-accent);
  transition: color 1.5s ease;
}

.wine-line span {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  text-transform: none;
  font-style: italic;
  letter-spacing: 0;
  color: var(--text-main);
  margin-left: 0.3rem;
  transition: color 1.5s ease;
}

/* Ultra-Minimalist Welcome & Invitation Stage */
.welcome-tag {
  font-family: var(--font-title);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 1.2rem;
  transition: color 1.5s ease;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 11vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  transition: color 1.5s ease;
}

.welcome-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-style: italic;
  color: var(--text-gold);
  margin-bottom: 1.8rem;
  transition: color 1.5s ease;
}

.welcome-location {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto;
  line-height: 1.5;
  transition: color 1.5s ease;
}

/* Stage 1: Menu Overview */
.overview-title {
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 1.8rem;
  transition: color 1.5s ease;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2.5vh, 1.8rem);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.overview-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: filter 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
}

/* Progressive Reveal Blur Effect */
.overview-row.blurred {
  filter: blur(6px);
  opacity: 0.22;
  user-select: none;
  pointer-events: none;
}

.overview-course {
  font-family: var(--font-title);
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 0.2rem;
  transition: color 1.5s ease;
}

.overview-name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  transition: color 1.5s ease;
}

.overview-wine {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  font-style: italic;
  color: var(--text-muted);
  transition: color 1.5s ease;
}

/* Bottom Subtly Floating Page Indicator */
.stage-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  letter-spacing: 4px;
  color: var(--text-gold);
  opacity: 0.6;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.4s ease, color 1.5s ease;
}

/* Elegant Italic Serif Feedback Notification (No Lock Emojis) */
#toast-notification {
  position: absolute;
  top: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-gold);
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 100;
  pointer-events: none;
}

#toast-notification.show {
  opacity: 0.9;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile & Short Screen Optimization */
@media (max-width: 600px), (max-height: 680px) {
  .content-wrapper {
    padding: 0.8rem;
  }
  .stage {
    padding: 1rem 0.5rem;
    width: 95%;
  }
  .overview-list {
    gap: 0.6rem;
  }
  .gold-divider.overview-divider {
    margin: 0.6rem auto !important;
  }
  .silhouette-container {
    height: 20vh;
  }
  .stage-indicator {
    bottom: 1rem;
  }

  body.hide-indicator-mobile .stage-indicator {
    display: none !important;
    opacity: 0 !important;
  }
}
