/* ============================================
   THE GROVE VNS — Custom Styles
   Botanical Noir · Luxury Restaurant
   ============================================ */

/* ---------- Smooth Scrolling ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(244, 195, 102, 0.3);
  color: #f4c366;
}

/* ---------- Body Background ---------- */
body {
  background-color: #121416;
  font-family: 'Inter', sans-serif;
}

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.glass-card:hover,
.glass-card-hover:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 168, 78, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Hero background slow zoom */
@keyframes hero-bg-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.hero-bg-zoom {
  animation: hero-bg-zoom 20s infinite alternate ease-in-out;
}

/* Fade in up (page load) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Pulse scale (for chat icon) */
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.pulse-animation {
  animation: pulseScale 2s infinite;
}

/* Map pin pulse ring */
@keyframes pinPulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}
.pin-pulse {
  animation: pinPulse 2s infinite;
}

/* ============================================
   SCROLL REVEAL (driven by JS IntersectionObserver)
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
.nav-link {
  position: relative;
}
.nav-link.active {
  color: #f4c366;
  border-bottom: 2px solid #f4c366;
  padding-bottom: 4px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* ============================================
   BUTTONS
   ============================================ */

/* Shine sweep on hover */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-shine:hover::after {
  transform: translateX(100%);
}

/* Gold glow on hover */
.gold-glow {
  transition: box-shadow 0.3s ease;
}
.gold-glow:hover {
  box-shadow: 0 0 20px rgba(214, 168, 78, 0.2);
}

/* ============================================
   FORM INPUTS (dark botanical style)
   ============================================ */
.input-dark {
  background-color: rgba(30, 53, 43, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e2e5;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.input-dark::placeholder {
  color: rgba(210, 197, 178, 0.5);
}
.input-dark:focus {
  border-color: #D6A84E;
  box-shadow: 0 0 0 2px rgba(214, 168, 78, 0.2);
  outline: none;
}
/* Dark color-scheme for native date/time pickers */
input[type="date"].input-dark,
input[type="time"].input-dark {
  color-scheme: dark;
}
select.input-dark {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d2c5b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================
   VEG / NON-VEG INDICATORS
   ============================================ */
.veg-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: 1.5px solid #22c55e;
  border-radius: 3px;
  flex-shrink: 0;
}
.veg-indicator::after {
  content: '';
  width: 9px; height: 9px;
  background: #22c55e;
  border-radius: 50%;
}

.nonveg-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: 1.5px solid #ef4444;
  border-radius: 3px;
  flex-shrink: 0;
}
.nonveg-indicator::after {
  content: '';
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #ef4444;
}

/* ============================================
   MENU TABS (scrollable pills)
   ============================================ */
.menu-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  white-space: nowrap;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  color: #d2c5b2;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.menu-tab:hover {
  color: #f4c366;
  border-color: rgba(214, 168, 78, 0.3);
}
.menu-tab.active {
  color: #f4c366;
  border-color: rgba(214, 168, 78, 0.5);
  background: rgba(214, 168, 78, 0.08);
}

/* Menu separator line */
.menu-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ============================================
   GALLERY
   ============================================ */

/* Masonry via CSS columns */
.masonry-grid {
  column-count: 1;
  column-gap: 24px;
}
@media (min-width: 768px) {
  .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* Gallery hover overlay */
.gallery-overlay {
  background: linear-gradient(to top,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0.4) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  color: #e2e2e5;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 310;
}
.lightbox-close:hover {
  color: #f4c366;
  transform: scale(1.15);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #e2e2e5;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 310;
  padding: 12px;
}
.lightbox-nav:hover { color: #f4c366; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ============================================
   DECORATIVE CORNER ACCENTS
   ============================================ */
.corner-accent-tl {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px;
  border-top: 1px solid rgba(214,168,78,0.5);
  border-left: 1px solid rgba(214,168,78,0.5);
}
.corner-accent-br {
  position: absolute; bottom: 12px; right: 12px;
  width: 32px; height: 32px;
  border-bottom: 1px solid rgba(214,168,78,0.5);
  border-right: 1px solid rgba(214,168,78,0.5);
}

/* ============================================
   SIDE NAV TOOLTIPS
   ============================================ */
.side-nav-btn {
  position: relative;
}
.side-nav-btn .tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(30, 32, 34, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 12px;
  color: #e2e2e5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.side-nav-btn:hover .tooltip {
  opacity: 1;
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Gold divider line */
.gold-divider {
  width: 64px;
  height: 1px;
  background: rgba(244, 195, 102, 0.5);
}

/* Radial glow background */
.bg-radial-glow {
  background-color: #050505;
  background-image: radial-gradient(circle at 50% 50%, rgba(20, 30, 20, 0.4) 0%, #050505 100%);
  background-attachment: fixed;
}
