/* Menu Page Styles - Matching Homepage Design */

/* Menu Hero Section */
.menu-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 6rem 0;
  text-align: center;
  color: white;
}

.menu-hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: #f9eed9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Menu Navigation */
.menu-navigation {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--light-background);
  border: 2px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--button-font);
  font-weight: 600;
  color: var(--text-color);
  min-width: 100px;
}

.menu-nav-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.menu-nav-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--accent-color);
}

.menu-nav-icon {
  font-size: 1.5rem;
}

.menu-nav-text {
  font-size: 0.9rem;
}

/* Menu Sections */
.menu-sections {
  padding: 4rem 0;
  background: var(--light-background);
  min-height: 60vh;
}

.menu-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.menu-section.active {
  display: block;
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border-left: 4px solid var(--accent-color);
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
  border-left-color: var(--primary-color);
}

.menu-item-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.menu-item-header h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
}

.price {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}

.ingredients {
  color: var(--light-text);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  font-style: italic;
}

/* Allergy Tags */
.allergy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.allergy-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--light-background);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
}

.allergy-tag.meat {
  background: #ffe6e6;
  color: #cc0000;
  border-color: #cc0000;
}

.allergy-tag.fish {
  background: #e6f3ff;
  color: #0066cc;
  border-color: #0066cc;
}

.allergy-tag.dairy {
  background: #fff2e6;
  color: #cc6600;
  border-color: #cc6600;
}

.allergy-tag.gluten {
  background: #f0f0f0;
  color: #666666;
  border-color: #666666;
}

.allergy-tag.nuts {
  background: #fff0e6;
  color: #cc6600;
  border-color: #cc6600;
}

.allergy-tag.eggs {
  background: #ffffe6;
  color: #cccc00;
  border-color: #cccc00;
}

.allergy-tag.wine {
  background: #f0e6ff;
  color: #6600cc;
  border-color: #6600cc;
}

.allergy-tag.vegan {
  background: #e6ffe6;
  color: #006600;
  border-color: #006600;
}

.allergy-tag.vegetarian {
  background: #e6ffe6;
  color: #006600;
  border-color: #006600;
}

.allergy-tag.gluten-free {
  background: #e6ffe6;
  color: #006600;
  border-color: #006600;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--light-text);
  cursor: pointer;
  z-index: 10;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image {
  height: 400px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 2rem;
  background: white;
}

.modal-info h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.modal-price {
  margin-bottom: 2rem;
}

.modal-price span {
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.3rem;
}

.modal-section p {
  color: var(--light-text);
  line-height: 1.6;
  margin: 0;
}

.modal-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.order-now-btn {
  flex: 1;
  min-width: 150px;
}

.add-to-favorites-btn {
  flex: 1;
  min-width: 150px;
}

/* Allergens Section */
.allergens-content {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.allergens-card {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow-md);
  text-align: center;
  max-width: 600px;
  border: 2px solid var(--accent-color);
}

.allergens-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.allergens-card p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .menu-hero-content p {
    font-size: 1rem;
  }
  
  .menu-nav-buttons {
    gap: 0.5rem;
  }
  
  .menu-nav-btn {
    padding: 0.8rem 1rem;
    min-width: 80px;
  }
  
  .menu-nav-icon {
    font-size: 1.2rem;
  }
  
  .menu-nav-text {
    font-size: 0.8rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .menu-item-content {
    padding: 1rem;
  }
  
  .menu-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .price {
    align-self: flex-end;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .allergens-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  /* Modal responsive */
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 250px;
  }

  .modal-info {
    padding: 1.5rem;
  }

  .modal-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .menu-hero {
    padding: 4rem 0;
  }
  
  .menu-hero-content h1 {
    font-size: 2rem;
  }
  
  .menu-nav-buttons {
    justify-content: space-between;
  }
  
  .menu-nav-btn {
    min-width: 70px;
    padding: 0.6rem 0.8rem;
  }
  
  .menu-nav-icon {
    font-size: 1rem;
  }
  
  .menu-nav-text {
    font-size: 0.7rem;
  }
  
  .menu-item-content {
    padding: 0.8rem;
  }
  
  .menu-item-header h3 {
    font-size: 1.1rem;
  }
  
  .price {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .allergy-tags {
    gap: 0.3rem;
  }

  .allergy-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Smooth scrolling for menu navigation */
html {
  scroll-behavior: smooth;
}

/* Loading animation for menu sections */
.menu-section.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus states for accessibility */
.menu-nav-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

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

/* Modal focus states */
.close-modal:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Enhanced hover effects */
.menu-item {
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.menu-item:hover::before {
  left: 100%;
}
