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

.heart {
  position: absolute;
  bottom: -20px;
  font-size: 20px;
  animation: floatUp linear forwards;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg) scale(1.2);
  }
}

/* ============================================
   TYPEWRITER EFFECT
   ============================================ */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #ff6b9d;
  animation: blinkCursor 0.7s step-end infinite;
}

.typewriter.done {
  border-right: none;
  animation: none;
  white-space: normal;
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

/* ============================================
   CONFETTI BURST
   ============================================ */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* ============================================
   SCREEN TRANSITIONS
   ============================================ */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  padding: 20px;
  box-sizing: border-box;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 10;
}

.screen.exit {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   PULSING GLOW
   ============================================ */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.6), 0 0 60px rgba(255, 107, 157, 0.2);
  }
}

/* ============================================
   SCANNING / LOADING ANIMATION
   ============================================ */
.scan-line {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b9d, transparent);
  animation: scanMove 1.5s ease-in-out infinite;
  margin: 20px auto;
}

@keyframes scanMove {
  0%, 100% { transform: translateX(-50px); opacity: 0.3; }
  50% { transform: translateX(50px); opacity: 1; }
}

.progress-bar {
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 16px auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b9d, #ffd700);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ============================================
   FADE IN ELEMENTS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade-in for lists */
.stagger > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SPARKLE CURSOR TRAIL
   ============================================ */
.sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 12px;
  z-index: 9999;
  animation: sparkleFade 0.8s ease-out forwards;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.3) translateY(-30px);
  }
}

/* ============================================
   BACKGROUND TRANSITIONS (day → sunset → stars)
   ============================================ */
.bg-day {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: background 2s ease;
}

.bg-sunset {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 40%, #ffd700 100%);
  transition: background 2s ease;
}

.bg-night {
  background: linear-gradient(135deg, #0c0a2a 0%, #1a0a3e 50%, #2d1b69 100%);
  transition: background 2s ease;
}

/* ============================================
   STAR FIELD (CSS-only fallback)
   ============================================ */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffe066;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f0e6ff;
  border: 1px solid rgba(255, 107, 157, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 107, 157, 0.15);
  border-color: rgba(255, 107, 157, 0.6);
}
