/* ====================================
   SAN VALENTINO APP - Minimal & Romantic
   ==================================== */

/* Container principale */
#sanValentinoPage {
  background: linear-gradient(135deg, 
    #ff9a9e 0%, 
    #fecfef 50%,
    #ffeaa7 100%
  );
  overflow: hidden;
}

.san-valentino-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 140px; /* Further increased bottom padding */
}

/* ====================================
   HEARTS ANIMATION CONTAINER
   ==================================== */
.hearts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.heart {
  position: absolute;
  width: 24px;
  height: 21px;
  opacity: 0;
  top: 100%; /* Start from bottom */
  filter: blur(0.5px);
  animation: floatHeartDelicate 12s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

/* CSS Heart shape using pseudo-elements */
.heart::before,
.heart::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 19px;
  border-radius: 12px 12px 0 0;
  background: var(--heart-color, linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%));
}

.heart::before {
  left: 12px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

@keyframes floatHeartDelicate {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.6) rotate(0deg);
  }
  5% {
    opacity: 0.7; /* Increased from 0.4 */
  }
  50% {
    opacity: 0.9; /* Increased from 0.6 */
    transform: translateY(-50vh) translateX(20px) scale(1) rotate(180deg);
  }
  95% {
    opacity: 0.7; /* Increased from 0.4 */
  }
  100% {
    opacity: 0;
    transform: translateY(-110vh) translateX(-20px) scale(0.8) rotate(360deg);
  }
}

/* ====================================
   MAIN CONTENT
   ==================================== */
.valentine-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 90%;
  animation: fadeInUp 1s ease-out;
}

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

/* ====================================
   PHOTO FRAME
   ==================================== */
.valentine-photo-frame {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b9d, #c06c84);
  padding: 8px;
  box-shadow: 
    0 20px 60px rgba(255, 107, 157, 0.4),
    0 0 40px rgba(255, 107, 157, 0.2);
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 20px 60px rgba(255, 107, 157, 0.4),
      0 0 40px rgba(255, 107, 157, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 
      0 25px 70px rgba(255, 107, 157, 0.5),
      0 0 50px rgba(255, 107, 157, 0.3);
  }
}

.photo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: white;
}

.valentine-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shine effect */
.photo-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* ====================================
   MESSAGE
   ==================================== */
.valentine-message {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out 1s backwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.valentine-icon {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


.valentine-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 15px 0;
  letter-spacing: 1px;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.05);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.valentine-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-weight: 400;
  opacity: 0.95;
  max-width: 300px;
}

.valentine-date {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-height: 700px) {
  .valentine-photo-frame {
    width: 220px;
    height: 220px;
  }
  
  .valentine-title {
    font-size: 36px;
  }
  
  .valentine-text {
    font-size: 16px;
  }
}
