/* ===================================
   Mother Masala Family Kitchen
   Shared Stylesheet
   =================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #0e0e0e;
  color: #e5e2e1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Noto Serif', serif;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Material Icons ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Utility Gradients ---------- */
.hero-gradient {
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0.4), rgba(14, 14, 14, 1));
}

.gold-button-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f2ca50 100%);
}

/* ---------- Glass Blur ---------- */
.premium-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ---------- Scrollbar hide ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Selection ---------- */
::selection {
  background-color: #d4af37;
  color: #3c2f00;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Menu Toggle Tabs ---------- */
.menu-tab {
  padding: 0.625rem 2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.menu-tab.active-veg {
  background-color: rgba(22, 101, 52, 0.4);
  color: #4ade80;
}

.menu-tab.active-nonveg {
  background-color: rgba(153, 27, 27, 0.4);
  color: #f87171;
}

.menu-tab.inactive {
  background: transparent;
  color: #d0c5af;
}

.menu-tab.inactive:hover {
  color: #e5e2e1;
}

/* Dot indicators */
.dot-veg { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.dot-nonveg { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }

/* ---------- Menu Section Visibility ---------- */
.menu-section { display: none; }
.menu-section.active { display: block; }

/* ---------- Mobile Nav Overlay ---------- */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-nav a {
  font-family: 'Noto Serif', serif;
  font-size: 1.75rem;
  color: #e5e2e1;
  transition: color 0.2s;
}

#mobile-nav a:hover,
#mobile-nav a.active-link {
  color: #f2ca50;
}

#mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #f2ca50;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 999;
  border-radius: 50%;
  animation: wa-pulse 2s ease-in-out infinite;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Menu Search Bar ---------- */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #1c1b1b;
  border: 1px solid rgba(77, 70, 53, 0.3);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-container:focus-within {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.search-icon {
  color: #99907c;
  font-size: 22px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.search-container:focus-within .search-icon {
  color: #d4af37;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e5e2e1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  padding: 14px 12px;
}

.search-input::placeholder {
  color: #99907c;
  font-style: italic;
}

.search-count {
  font-size: 0.7rem;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #99907c;
  padding: 4px;
  margin-left: 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e2e1;
}

/* Search results */
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(77, 70, 53, 0.15);
  transition: background 0.2s;
}

.search-result-item:hover {
  background: rgba(212, 175, 55, 0.04);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-highlight {
  background: rgba(212, 175, 55, 0.25);
  color: #f2ca50;
  border-radius: 2px;
  padding: 0 2px;
}

.search-no-results {
  text-align: center;
  padding: 32px 16px;
  color: #99907c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
