/* Image Popup and Hover Effects */

/* Hover effect for images */
.promotion-item,
.card img,
.menu-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.promotion-item:hover,
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.promotion-image:hover,
.card img:hover {
  transform: scale(1.02);
}

/* Popup Modal */
.image-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.image-popup-overlay.active {
  display: flex;
}

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

.image-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-popup-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-popup-caption {
  background: white;
  padding: 1.5rem;
  border-radius: 0 0 10px 10px;
  text-align: center;
}

.image-popup-caption h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.image-popup-caption p {
  margin: 0;
  color: #7f8c8d;
}

.popup-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #2c3e50;
}

.popup-close:hover {
  background: #e74c3c;
  color: white;
  transform: rotate(90deg);
}

/* Navigation arrows */
.popup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.popup-nav.prev {
  left: 20px;
}

.popup-nav.next {
  right: 20px;
}

/* Menu item hover */
#menuDelDia ul li {
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

#menuDelDia ul li:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(10px);
  padding-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .image-popup-content {
    max-width: 95%;
  }

  .popup-close {
    top: -40px;
    width: 35px;
    height: 35px;
  }

  .popup-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .popup-nav.prev {
    left: 10px;
  }

  .popup-nav.next {
    right: 10px;
  }
}

