/* ===============================
   💖 Valentine Popup
================================ */

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #ffe6f5;
  border: 3px solid #000;
  border-radius: 25px;
  padding: 2rem 2.2rem;
  width: 320px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.popup-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 900;
}

.popup-box p {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.popup-link {
  display: inline-block;
  background: #ffb6d9;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #000;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: bold;
}

/* ===============================
   💖 Valentine Infinite Image Slider
================================ */

.image-slider {
  overflow: hidden;
  width: 100%;
  margin-bottom: 1rem;
}

.slider-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: scroll 28s linear infinite;
}

.slider-track img {
  width: 260px;
  height: auto;
  border-radius: 16px;
  border: 3px solid #ffb6d9;
  flex-shrink: 0;
}

/* Infinite scroll animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.image-slider:hover .slider-track {
  animation-play-state: paused;
}

/* ===============================
   📱 Mobile Optimization
================================ */

@media (max-width: 768px) {
  .slider-track {
    animation-duration: 40s;
  }

  .slider-track img {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .image-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .slider-track {
    animation: none;
  }

  .slider-track img {
    width: 200px;
  }
}
