/* Bon Jour Resto - Modern Food Menu Design System */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1faee;
  --bg-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font-primary: 'Montserrat', sans-serif;
  --premium-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: var(--font-primary);
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

/* Cinematic Hero Section */
.hero-menu {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('../assets/filipino_cuisine_hero_bg_1773753017240.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  margin-bottom: 4rem;
}

.hero-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 3.5rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  animation: slideUp 1s ease-out;
}

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

.hero-menu h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.hero-menu p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Headers */
.category-header {
  position: relative;
  margin: 4rem 0 2.5rem;
  text-align: center;
}

.category-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
}

.category-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Menu Grid */
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Premium Menu Item Cards */
.menu-item {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--premium-shadow);
}

.menu-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.menu-item-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes content to fill the card */
  text-align: left;
}

.menu-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  min-height: 3.4rem; /* Forces titles to take up the same space */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 3.2rem; /* Forces descriptions to align */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: auto;
  margin-bottom: 1.5rem;
}

/* CTA: Add To Cart Button */
.add-to-cart {
  width: 100%;
  height: 52px; /* Fixed height for perfect alignment */
  padding: 0 1rem;
  border: none;
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.add-to-cart:hover {
  background: #c12e3a;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
  transform: translateY(-2px);
}

.add-to-cart i {
  font-size: 1.1rem;
}

/* Skeleton Loading Support */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

/* Custom Alert Modernization */
.custom-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  box-shadow: var(--premium-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2000;
  border-left: 5px solid var(--primary-color);
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  .hero-menu {
    min-height: 40vh;
    margin-bottom: 1.5rem;
    background-attachment: scroll;
  }

  .hero-content {
    margin: 1rem;
    padding: 1rem 0.75rem; /* Ultra compact */
    border-radius: 12px;
    width: 95%;
  }

  .hero-menu h1 {
    font-size: 1.5rem; /* Even smaller to fit perfectly */
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }

  .hero-menu p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-menu .btn-lg {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important; /* Matches less roundy style */
  }

  .category-header h2 {
    font-size: 1.75rem;
  }

  .menu-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 1.25rem;
  }

  .menu-item img {
    height: 200px; /* Shorter images for mobile stream */
  }

  .menu-item-content {
    padding: 1.25rem;
  }

  .custom-alert {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: space-between;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero-menu h1 {
    font-size: 1.8rem;
  }
  
  .category-header {
    margin: 3rem 0 1.5rem;
  }

  .category-header h2 {
    font-size: 1.5rem;
  }
  
  .menu-item h3 {
    font-size: 1.25rem;
    min-height: auto;
  }

  .menu-item p {
    min-height: auto;
    margin-bottom: 1rem;
  }
}
