/* ==========================================================================
   No.12 Lokanta — Custom Design System Styles (UI/UX Pro Max)
   Aesthetic: Heritage Anatolian Artisan & Editorial Culinary
   ========================================================================== */

:root {
  --bg-cream: #F6F2EA;
  --bg-parchment: #ECE6D8;
  --bg-parchment-deep: #E2DAC8;
  --bg-slate: #262D35;
  --bg-slate-soft: #444D58;
  --text-primary: #1A2026;
  --text-secondary: #48515C;
  --text-muted: #6C7581;
  --text-on-dark: #F6F2EA;
  --brand-sand: #DBD3C3;
  --accent-terracotta: #B85233;
  --accent-terracotta-hover: #9B4024;
  --accent-olive: #52633D;
  --accent-gold: #C59B5F;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --border-warm: #DCD3C2;
  --shadow-warm: 0 20px 45px -15px rgba(38, 45, 53, 0.10);
  --shadow-elevated: 0 28px 60px -12px rgba(38, 45, 53, 0.22);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Subtle organic paper grain overlay */
.bg-paper-grain {
  background-image: radial-gradient(rgba(68, 77, 88, 0.045) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Custom Editorial Typography Classes */
.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-mono-label {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Anatolian Marquee Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Custom Decorative Spoon Line */
.spoon-divider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menu Card Hover Transitions */
.dish-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

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

.dish-card .dish-img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.dish-card:hover .dish-img {
  transform: scale(1.06);
}

/* Filter Pill Active State */
.filter-btn {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-btn.active {
  background-color: var(--bg-slate);
  color: var(--brand-sand);
  border-color: var(--bg-slate);
  box-shadow: 0 8px 20px -6px rgba(38, 45, 53, 0.35);
}

/* Native Dialog Lightbox Styling */
dialog.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 92vh;
  overflow: visible;
}

dialog.lightbox-dialog::backdrop {
  background: rgba(20, 24, 29, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* WhatsApp Floating Button Pulse & Tooltip */
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-floating-btn {
  animation: waPulse 2.4s infinite;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.wa-floating-btn:hover {
  transform: scale(1.07) translateY(-2px);
}

.wa-quick-menu {
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
}

.wa-quick-menu.hidden-menu {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(10px);
  pointer-events: none;
}

.wa-quick-menu.visible-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: #C4B9A5;
  border-radius: 5px;
  border: 2px solid var(--bg-cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-slate-soft);
}
