/* menu.css - Food Menu Page Styles */

.menu-page {
  min-height: calc(100vh - 120px);
  padding: 40px 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.menu-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease;
}

.menu-title {
  font-family: 'Great Vibes', cursive;
  font-size: 64px;
  color: var(--cream);
  margin: 0 0 10px 0;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.menu-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  letter-spacing: 2px;
}

/* Filter Section */
.filter-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease 0.3s backwards;
}

.filter-btn {
  padding: 12px 28px;
  border-radius: 25px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #F8EFE0 0%, var(--beige) 100%);
  color: #2c1810;
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  animation: fadeIn 1s ease 0.5s backwards;
}

/* Menu Item Card */
.menu-item {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  -webkit-tap-highlight-color: transparent;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }
.menu-item:nth-child(8) { animation-delay: 0.8s; }

.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}

.menu-item.hidden {
  display: none;
}

/* Item Image */
.item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-item:hover .item-image img {
  transform: scale(1.1);
}

/* Badges */
.veg-badge,
.nonveg-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 20px;
  background: rgba(255,255,255,0.95);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.special-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #2c1810;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Item Details */
.item-details {
  padding: 20px;
}

.item-name {
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 8px 0;
}

.item-description {
  font-family: 'Merriweather', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-price {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
}

.add-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #F8EFE0 0%, var(--beige) 100%);
  color: #2c1810;
  font-family: 'Baloo 2', cursive;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.add-btn:active {
  transform: scale(0.98);
}

/* Footer */
.menu-footer {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255,255,255,0.5);
  font-family: 'Merriweather', serif;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 60px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .menu-page {
    padding: 25px 15px 40px;
  }

  .menu-title {
    font-size: 48px;
    line-height: 1.2;
  }

  .menu-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .filter-section {
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 5px;
  }

  .filter-btn {
    padding: 12px 22px;
    font-size: 13px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .menu-item {
    border-radius: 18px;
  }

  .item-name {
    font-size: 18px;
    line-height: 1.3;
  }

  .item-description {
    font-size: 12px;
    line-height: 1.6;
  }

  .item-price {
    font-size: 20px;
  }
  
  .add-btn {
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 480px) {
  .menu-page {
    padding: 20px 12px 35px;
  }
  
  .menu-title {
    font-size: 38px;
    line-height: 1.2;
  }

  .menu-subtitle {
    font-size: 12px;
    line-height: 1.5;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 12px;
    min-height: 42px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .item-details {
    padding: 18px;
  }
  
  .item-name {
    font-size: 17px;
  }
  
  .item-description {
    font-size: 11px;
    line-height: 1.5;
  }

  .special-tag {
    font-size: 10px;
    padding: 5px 10px;
  }
}
