/**
 * Fluid Responsive Menu System - Hero Page
 * Mobile-first approach with CSS variables and clamp() functions
 * Supports breakpoints from 480px to 1920px+
 */

/* ========================================= */
/* CSS VARIABLE SYSTEM - ROOT DEFINITIONS   */
/* ========================================= */

:root {
  /* Grid System Variables */
  --grid-columns-mobile: 2;
  --grid-columns-mobile-lg: 3;
  --grid-columns-tablet: 4;
  --grid-columns-tablet-lg: 4;
  --grid-columns-desktop-sm: 5;
  --grid-columns-desktop-md: 5;
  --grid-columns-desktop-lg: 5;
  --grid-columns-ultra-wide: 6;
  
  /* Fluid Spacing with clamp() */
  --card-padding: clamp(1rem, 2.5vw, 2.5rem);
  --grid-gap: clamp(0.5rem, 1.5vw, 1.5rem);
  --section-padding: clamp(2rem, 5vw, 5rem);
  --container-padding: clamp(0.5rem, 2vw, 2rem);
  
  /* Typography Scaling */
  --title-size: clamp(1.3rem, 3vw, 2.5rem);
  --item-name-size: clamp(0.9rem, 2vw, 1.5rem);
  --price-size: clamp(1.1rem, 2.5vw, 1.8rem);
  --description-size: clamp(0.8rem, 1.5vw, 1rem);
  --filter-font-size: clamp(0.6rem, 1.2vw, 0.9rem);
  --icon-size: clamp(1.8rem, 4vw, 3rem);
  --item-number-size: clamp(30px, 5vw, 50px);
  
  /* Visual Properties */
  --border-radius: clamp(10px, 1.5vw, 30px);
  --card-border-radius: clamp(10px, 2vw, 20px);
  --filter-border-radius: clamp(15px, 2vw, 30px);
  --shadow-size: clamp(5px, 1vw, 20px);
  
  /* Filter Button Scaling */
  --filter-padding-y: clamp(0.4rem, 1vw, 1rem);
  --filter-padding-x: clamp(0.8rem, 2vw, 2rem);
  
  /* Color System - Matching Home Page Theme */
  --primary-color: #b0d136;
  --primary-dark: #9bc234;
  --secondary-color: #f8f9fa;
  --text-primary: #ffffff;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-shadow: rgba(176, 209, 54, 0.4);
  --card-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --card-border: rgba(176, 209, 54, 0.1);
  
  /* Layout Constraints */
  --card-max-width: 100%;
  --container-max-width: 100%;
  --line-height-base: 1.4;
  --line-height-relaxed: 1.6;
  
  /* Animation Properties */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --hover-scale: 1.02;
  --hover-translate: -4px;
}

/* ========================================= */
/* UTILITY CLASSES                          */
/* ========================================= */

.container-fluid {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

/* ========================================= */
/* MENU HERO SECTION WITH VIDEO BACKGROUND  */
/* ========================================= */

.menu-hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a; /* Fallback color */
}

.menu-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.menu-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  object-fit: cover;
}

/* Fallback background for browsers that don't support video */
.menu-hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  z-index: 1;
}

.menu-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
}

.menu-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: var(--container-padding);
}

.menu-hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  font-family: 'Impact', 'Arial Black', sans-serif;
  line-height: 0.9;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.menu-title-line-1 {
  display: block;
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(132, 204, 22, 0.5);
}

.menu-title-line-2 {
  display: block;
  color: white;
}

.menu-hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile optimizations for hero section */
@media (max-width: 768px) {
  .menu-hero-section {
    height: 50vh;
    min-height: 300px;
  }
  
  .menu-hero-video {
    /* Ensure video covers properly on mobile */
    min-width: 120%;
    min-height: 120%;
  }
  
  .menu-hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .menu-hero-video {
    animation-play-state: paused;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .menu-hero-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
  
  .menu-hero-title,
  .menu-hero-subtitle {
    text-shadow: none;
  }
}

/* Video loading states */
.menu-hero-video {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.menu-hero-video.loaded {
  opacity: 1;
}

/* Preload optimization */
.menu-hero-video {
  preload: metadata;
}

/* Mobile-specific video optimizations */
@media (max-width: 480px) {
  .menu-hero-section {
    height: 50vh;
    min-height: 300px;
  }
  
  .menu-hero-video {
    /* Keep video visible on mobile but optimize */
    min-width: 110%;
    min-height: 110%;
  }
  
  .menu-hero-overlay {
    /* Lighter overlay on mobile for better video visibility */
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

/* Data saver mode */
@media (prefers-reduced-data: reduce) {
  .menu-hero-video {
    display: none;
  }
  
  .menu-hero-fallback {
    display: block !important;
  }
}

/* Tablet and desktop video display */
@media (min-width: 481px) {
  .menu-hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .menu-hero-video {
    display: block;
    min-width: 100%;
    min-height: 100%;
  }
}

/* ========================================= */
/* BASE MOBILE STYLES (≤480px)              */
/* ========================================= */

/* Menu Categories Section */
.menu-categories-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
  padding: var(--section-padding) 0;
  min-height: 100vh;
}

/* Menu Filters */
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap);
  margin-bottom: calc(var(--section-padding) * 0.8);
  padding: 0 var(--container-padding);
}

.menu-filter-btn {
  padding: var(--filter-padding-y) var(--filter-padding-x);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--filter-border-radius);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: var(--filter-font-size);
  cursor: pointer;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Touch-friendly minimum */
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  transition: left 0.4s ease;
  z-index: -1;
}

.menu-filter-btn:hover::before,
.menu-filter-btn.active::before {
  left: 0;
}

.menu-filter-btn:hover,
.menu-filter-btn.active {
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--hover-shadow);
}

.menu-filter-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Menu Category */
.menu-category {
  margin-bottom: calc(var(--section-padding) * 0.8);
}

.category-header {
  text-align: center;
  margin-bottom: calc(var(--section-padding) * 0.6);
  position: relative;
  padding: 0 var(--container-padding);
}
.category-title, .menu-category .category-title, .menu-category > .category-header > .category-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--grid-gap) * 0.5);
  font-size: var(--title-size, 2.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  font-family: 'Bebas Neue', 'Oswald', 'Impact', 'Arial Black', sans-serif;
  line-height: var(--line-height-base);
  color: #ffffff !important;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.category-icon {
  font-size: var(--icon-size);
  filter: drop-shadow(0 2px 4px var(--shadow-color));
}

.category-description {
  font-size: var(--description-size);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(50px, 15vw, 100px);
  height: clamp(2px, 0.5vw, 4px);
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

/* Menu Items Grid - Mobile Base */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns-mobile), 1fr);
  gap: var(--grid-gap);
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Fallback for browsers without CSS Grid */
@supports not (display: grid) {
  .menu-items-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .menu-item-card {
    flex: 1 1 calc(50% - var(--grid-gap));
    max-width: calc(50% - var(--grid-gap));
  }
}

/* Menu Item Card - Mobile Base */
.menu-item-card {
  background: white;
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: 0 var(--shadow-size) calc(var(--shadow-size) * 2) var(--shadow-color);
  transition: var(--transition-base);
  position: relative;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--card-max-width);
  height: fit-content;
  contain: layout style paint;
  will-change: transform;
  aspect-ratio: 1; /* Make cards square */
  min-height: 280px; /* Minimum height for mobile */
}

.menu-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--card-border-radius) 0 0 var(--card-border-radius);
  transition: width 0.3s ease;
}

.menu-item-card:hover {
  transform: translateY(var(--hover-translate)) scale(var(--hover-scale));
  box-shadow: 0 calc(var(--shadow-size) * 2) calc(var(--shadow-size) * 4) var(--shadow-color);
}

.menu-item-card:hover::before {
  width: 8px;
}

.menu-item-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Menu Item Number */
.menu-item-number {
  width: var(--item-number-size);
  height: var(--item-number-size);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: calc(var(--item-number-size) * 0.4);
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--hover-shadow);
  margin-bottom: calc(var(--card-padding) * 0.3);
  position: relative;
  overflow: hidden;
}

.menu-item-number::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.menu-item-card:hover .menu-item-number::before {
  animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* Menu Item Content */
.menu-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.menu-item-name {
  font-size: var(--item-name-size);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: calc(var(--card-padding) * 0.2);
  font-family: 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 0.02em;
  line-height: var(--line-height-base);
  transition: color 0.3s ease;
}

.menu-item-card:hover .menu-item-name {
  color: #1a252f;
}

.menu-item-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: calc(var(--card-padding) * 0.3);
  font-size: var(--description-size);
  font-weight: 400;
  text-align: center;
}

/* Menu Item Meta */
.menu-item-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--grid-gap) * 0.3);
  margin-bottom: calc(var(--card-padding) * 0.3);
  min-height: 2rem;
  width: 100%;
}

.cuisine-tag,
.calories-info {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--border-radius) * 0.5);
  font-size: calc(var(--filter-font-size) * 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cuisine-tag {
  background: rgba(132, 204, 22, 0.1);
  color: #7a9b2e;
}

.calories-info {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.calories-info::before {
  content: "🔥";
  margin-right: 0.25rem;
}

/* Menu Item Price */
.menu-item-price {
  font-size: var(--price-size);
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px var(--shadow-color);
  align-self: center;
  margin-top: auto;
}

.menu-item-price::before {
  content: '₹';
  font-size: calc(var(--price-size) * 0.8);
  opacity: 0.8;
}

/* Call to Action Section */
.menu-cta-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: var(--border-radius);
  padding: var(--section-padding);
  text-align: center;
  margin-top: var(--section-padding);
  color: white;
}

.menu-cta-content h3 {
  font-size: calc(var(--title-size) * 0.8);
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: 'Impact', 'Arial Black', sans-serif;
}

.menu-cta-content p {
  font-size: var(--description-size);
  margin-bottom: calc(var(--section-padding) * 0.5);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--line-height-relaxed);
}

.menu-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  align-items: center;
}

.btn {
  padding: var(--filter-padding-y) var(--filter-padding-x);
  border-radius: var(--filter-border-radius);
  font-weight: 700;
  font-size: var(--filter-font-size);
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 120px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--hover-shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-primary);
}

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

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-category {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================= */
/* MOBILE CARD OPTIMIZATIONS                */
/* ========================================= */

/* Mobile-specific card styling - Futuristic Neon Theme */
@media (max-width: 480px) {
  .menu-item-card {
    aspect-ratio: 0.9;
    min-height: 320px;
    max-height: 360px;
    padding: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 255, 127, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 127, 0.1);
    overflow: hidden;
    position: relative;
  }
  
  .menu-item-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 127, 0.2);
    border-color: rgba(0, 255, 127, 0.4);
  }
  
  /* Heart icon in top right */
  .menu-item-card::before {
    content: '♡';
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    z-index: 3;
    transition: all 0.3s ease;
  }
  
  .menu-item-card:hover::before {
    color: #00ff7f;
    transform: scale(1.2);
  }
  
  /* Food image area - top 50% */
  .menu-item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(0, 255, 127, 0.1) 0%, transparent 70%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
  }
  
  /* Hide the number on mobile for cleaner look */
  .menu-item-number {
    display: none;
  }
  
  /* Content area - bottom 50% */
  .menu-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: transparent;
    color: white;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
  }
  
  /* Item name and price on same line */
  .menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
  }
  
  .menu-item-name {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: white;
    font-family: 'Arial', sans-serif;
    flex: 1;
    margin-right: 0.5rem;
  }
  
  .menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff7f;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
    white-space: nowrap;
  }
  
  .menu-item-description {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Rating and calories row */
  .menu-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 1rem;
  }
  
  .menu-item-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #00ff7f;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .menu-item-rating::before {
    content: '★';
    color: #00ff7f;
    text-shadow: 0 0 5px rgba(0, 255, 127, 0.5);
  }
  
  .calories-info {
    display: flex !important;
    align-items: center;
    gap: 0.3rem;
    color: #00ff7f;
    font-size: 0.8rem;
    font-weight: 600;
    background: none;
  }
  
  .calories-info::before {
    content: '🔥';
    filter: hue-rotate(120deg) brightness(1.5);
  }
  
  /* Grid adjustments for mobile */
  .menu-items-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-item-card {
    aspect-ratio: 0.9;
    min-height: 300px;
    padding: 1.2rem;
  }
  
  .menu-item-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .menu-item-name {
    font-size: 1.1rem;
  }
  
  .menu-item-description {
    font-size: 0.85rem;
  }
  
  .menu-item-price {
    font-size: 1.4rem;
  }
}

/* Desktop grid - 5 columns for better consistency */
@media (min-width: 769px) {
  .menu-items-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1600px;
    padding: 0 2rem;
  }
}

/* Desktop adjustments - Clean card design like reference image */
@media (min-width: 769px) {
  .menu-item-card {
    aspect-ratio: 0.85;
    min-height: 320px;
    max-height: 380px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
  }
  
  .menu-item-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* Show item number on desktop */
  .menu-item-number {
    display: flex;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #2a2a2a;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
  }
  
  /* Food image area - top 50% */
  .menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
  }
  
  /* Content area - bottom 50% */
  .menu-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    padding: 1rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    align-items: center;
  }
  
  /* Hide the header div on desktop */
  .menu-item-header {
    display: contents;
  }
  
  .menu-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-align: center;
  }
  
  .menu-item-description {
    display: none; /* Hide description on desktop to match reference */
  }
  
  /* Show both cuisine and calories badges in one line */
  .menu-item-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    flex-wrap: nowrap; /* Keep badges in one line */
  }
  
  /* Hide ratings on desktop */
  .menu-item-rating {
    display: none !important;
  }
  
  /* Cuisine badge - Green color */
  .cuisine-tag {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Calories badge - Red color */
  .calories-info {
    display: flex !important;
    align-items: center;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .calories-info::before {
    content: '🔥';
    margin-right: 0.4rem;
    filter: none;
    font-size: 0.8rem;
  }
  
  /* Hide price on desktop */
  .menu-item-price {
    display: none !important;
  }
}

/* ========================================= */
/* ACCESSIBILITY IMPROVEMENTS               */
/* ========================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
    --shadow-color: rgba(0, 0, 0, 0.5);
  }
}

/* ========================================= */
/* PRINT STYLES                              */
/* ========================================= */

@media print {
  .menu-filter-btn,
  .menu-cta-section {
    display: none;
  }
  
  .menu-item-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}/* D
ifferent food image backgrounds for different cuisine types on mobile */
@media (max-width: 480px) {
  /* Vegetarian items - green theme */
  .menu-category[data-category="vegetarian-starters"] .menu-item-card::before {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🥗</text></svg>');
  }
  
  /* Non-veg items - orange/red theme */
  .menu-category[data-category="non-veg-starters"] .menu-item-card::before {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🍗</text></svg>');
  }
  
  /* Beverages - blue theme */
  .menu-category[data-category="beverages"] .menu-item-card::before {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🥤</text></svg>');
  }
  
  /* Desserts - pink theme */
  .menu-category[data-category="desserts"] .menu-item-card::before {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🍰</text></svg>');
  }
  
  /* Kolkata specials - yellow theme */
  .menu-category[data-category="kolkata-specials"] .menu-item-card::before {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🏛️</text></svg>');
  }
  
  /* Bengaluru pub - purple theme */
  .menu-category[data-category="bengaluru-pub"] .menu-item-card::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🍺</text></svg>');
  }
  
  /* Indo-Chinese - red theme */
  .menu-category[data-category="indo-chinese"] .menu-item-card::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🥢</text></svg>');
  }
  
  /* Tandoori & Kebabs - orange theme */
  .menu-category[data-category="tandoori-kebabs"] .menu-item-card::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🔥</text></svg>');
  }
  
  /* Burgers & Wraps - brown theme */
  .menu-category[data-category="burgers-wraps"] .menu-item-card::before {
    background: linear-gradient(135deg, #a3a3a3 0%, #737373 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🍔</text></svg>');
  }
  
  /* Main course - teal theme */
  .menu-category[data-category="main-course"] .menu-item-card::before {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🍛</text></svg>');
  }
  
  /* Biryanis - golden theme */
  .menu-category[data-category="biryanis"] .menu-item-card::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">🍚</text></svg>');
  }
  
  /* Signature dishes - gradient theme */
  .menu-category[data-category="signature"] .menu-item-card::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" fill="%23ffffff" font-size="25" opacity="0.8">⭐</text></svg>');
  }
}

/* Add click animation for the add button */
@media (max-width: 480px) {
  .menu-item-card:active .menu-item-price::after {
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.1s ease;
  }
}/* =====
==================================== */
/* HIDE AUDIO VISUALIZER ON MENU PAGE       */
/* ========================================= */

/* Hide audio visualizer element */
.audio-visualizer,
body > div.audio-visualizer,
.menu-page .audio-visualizer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hide any visualizer bars or equalizer elements */
.visualizer-bar,
.equalizer-bar,
.audio-bar {
  display: none !important;
}

/* Menu page specific - ensure no audio visualizer */
.menu-page body .audio-visualizer,
.site-main.menu-page ~ .audio-visualizer {
  display: none !important;
}/* Desktop f
ood images for different categories */
@media (min-width: 769px) {
  /* Vegetarian items - fresh green vegetables */
  .menu-category[data-category="vegetarian-starters"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Non-veg items - grilled chicken */
  .menu-category[data-category="non-veg-starters"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1532550907401-a500c9a57435?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Beverages - colorful drinks */
  .menu-category[data-category="beverages"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1544145945-f90425340c7e?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Desserts - sweet treats */
  .menu-category[data-category="desserts"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1551024506-0bccd828d307?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Kolkata specials - Bengali food */
  .menu-category[data-category="kolkata-specials"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ca4b?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Bengaluru pub - pub food */
  .menu-category[data-category="bengaluru-pub"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1571091718767-18b5b1457add?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Indo-Chinese - noodles and stir fry */
  .menu-category[data-category="indo-chinese"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1569718212165-3a8278d5f624?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Tandoori & Kebabs - grilled items */
  .menu-category[data-category="tandoori-kebabs"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1599487488170-d11ec9c172f0?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Burgers & Wraps */
  .menu-category[data-category="burgers-wraps"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1568901346375-23c9450c58cd?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Main course - curry dishes */
  .menu-category[data-category="main-course"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ca4b?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Biryanis - rice dishes */
  .menu-category[data-category="biryanis"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1563379091339-03246963d51a?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Thalis - complete meals */
  .menu-category[data-category="thalis"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1546833999-b9f581a1996d?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Signature dishes - special items */
  .menu-category[data-category="signature"] .menu-item-card::before {
    background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
  }
  
  /* Add overlay to images for better text readability */
  .menu-item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
  }
  
  .menu-item-number {
    z-index: 3;
  }
}