/**
 * Youth UI/UX Modernization
 * Delightful Surprise Interactions Styles
 * 
 * Styles for Easter eggs, random surprises, and special celebrations.
 * 
 * Requirements: 23.8
 */

/* ===================================
   Surprise Message
   =================================== */

.surprise-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  padding: var(--space-6) var(--space-8);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  z-index: 10002;
  opacity: 0;
  transition: all var(--duration-base) var(--ease-bounce);
  max-width: 90%;
}

.surprise-message.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ===================================
   Floating Surprise
   =================================== */

.floating-surprise {
  position: fixed;
  bottom: var(--space-20);
  right: var(--space-4);
  max-width: 350px;
  padding: var(--space-4);
  background: var(--color-background);
  border: 3px solid var(--color-accent-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-index-notification);
  opacity: 0;
  transform: translateX(400px) rotate(5deg);
  transition: all var(--duration-base) var(--ease-bounce);
}

.floating-surprise.show {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.surprise-emoji {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-2);
  animation: bounce 1s ease-in-out infinite;
}

.surprise-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
  line-height: var(--line-height-relaxed);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .floating-surprise {
    bottom: var(--space-24);
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* ===================================
   Sparkle Effects
   =================================== */

.surprise-sparkle {
  position: fixed;
  font-size: var(--font-size-3xl);
  pointer-events: none;
  z-index: 10000;
  animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(360deg) translateY(-50px);
  }
}

.rain-sparkle {
  position: fixed;
  top: -50px;
  font-size: var(--font-size-2xl);
  pointer-events: none;
  z-index: 10000;
  animation: sparkleRain 3s linear forwards;
}

@keyframes sparkleRain {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===================================
   Heart Effects
   =================================== */

.floating-heart {
  position: fixed;
  bottom: -50px;
  font-size: var(--font-size-2xl);
  pointer-events: none;
  z-index: 10000;
  animation: heartFloat 4s ease-out forwards;
}

@keyframes heartFloat {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) scale(1.2) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.8) rotate(-10deg);
    opacity: 0;
  }
}

/* ===================================
   Ripple Effect
   =================================== */

.surprise-ripple {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-primary-500);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  animation: rippleExpand 2s ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    width: 50px;
    height: 50px;
    opacity: 1;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* ===================================
   Special Date Decorations
   =================================== */

.special-date-decoration {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: decorationFloat 5s ease-in-out infinite;
}

@keyframes decorationFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Christmas snow */
.christmas-snow {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: snowFall 10s linear infinite;
}

@keyframes snowFall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

/* Hearts for Valentine's */
.valentine-heart {
  position: fixed;
  font-size: var(--font-size-3xl);
  pointer-events: none;
  z-index: 9999;
  animation: valentineFloat 8s ease-in-out infinite;
}

@keyframes valentineFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: 1;
  }
}

/* Fireworks for celebrations */
.celebration-firework {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ===================================
   Easter Egg Indicators
   =================================== */

.easter-egg-hint {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  opacity: 0.5;
  transition: opacity var(--duration-base) var(--ease-out);
  z-index: 100;
}

.easter-egg-hint:hover {
  opacity: 1;
}

/* ===================================
   Achievement Unlock Animation
   =================================== */

.surprise-achievement {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-4);
  background: var(--color-background);
  border: 3px solid var(--color-success-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  opacity: 0;
  transform: translateX(400px);
  transition: all var(--duration-base) var(--ease-bounce);
  max-width: 300px;
}

.surprise-achievement.show {
  opacity: 1;
  transform: translateX(0);
}

.achievement-icon {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-2);
}

.achievement-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-1);
}

.achievement-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
}

/* ===================================
   Combo Counter
   =================================== */

.combo-counter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-warning-500);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  animation: comboAppear 0.5s var(--ease-bounce) forwards;
}

@keyframes comboAppear {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ===================================
   Secret Unlocked Banner
   =================================== */

.secret-unlocked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: var(--gradient-accent);
  color: white;
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  z-index: 10001;
  transform: translateY(-100%);
  animation: bannerSlide 3s ease-in-out;
}

@keyframes bannerSlide {
  0%, 100% {
    transform: translateY(-100%);
  }
  10%, 90% {
    transform: translateY(0);
  }
}

/* ===================================
   Animations
   =================================== */

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  .surprise-message,
  .floating-surprise,
  .surprise-sparkle,
  .rain-sparkle,
  .floating-heart,
  .surprise-ripple,
  .surprise-achievement,
  .combo-counter,
  .secret-unlocked {
    animation: none !important;
  }
  
  .surprise-message.show,
  .floating-surprise.show,
  .surprise-achievement.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .surprise-emoji {
    animation: none;
  }
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 640px) {
  .surprise-message {
    font-size: var(--font-size-xl);
    padding: var(--space-4) var(--space-6);
  }
  
  .surprise-achievement {
    top: auto;
    bottom: var(--space-24);
    right: var(--space-4);
    left: var(--space-4);
    max-width: none;
  }
  
  .combo-counter {
    font-size: var(--font-size-4xl);
  }
  
  .secret-unlocked {
    font-size: var(--font-size-lg);
    padding: var(--space-3);
  }
}
