/**
 * Easter Egg Styles
 * Fancy modal with animations for the secret video
 */

/* Logo shake animation on click */
@keyframes logo-shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg) scale(1.05);
  }
  75% {
    transform: rotate(5deg) scale(1.05);
  }
}

/* Easter Egg Overlay */
.easter-egg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--space-4);
}

.easter-egg-overlay.easter-egg-visible {
  opacity: 1;
}

/* Easter Egg Modal */
.easter-egg-modal {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 100px rgba(79, 70, 229, 0.3);
  overflow: hidden;
  transform: scale(0.7) translateY(50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.easter-egg-visible .easter-egg-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Glowing border animation */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 100px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 120px rgba(79, 70, 229, 0.5);
  }
}

.easter-egg-visible .easter-egg-modal {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Video Element */
.easter-egg-video {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Close Button */
.easter-egg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.easter-egg-close:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.easter-egg-close:active {
  transform: scale(0.95);
}

/* Removed confetti effect */

/* Responsive */
@media (max-width: 768px) {
  .easter-egg-modal {
    max-width: 95vw;
    max-height: 80vh;
  }

  .easter-egg-video {
    max-height: 70vh;
  }

  .easter-egg-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .easter-egg-overlay,
  .easter-egg-modal {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  @keyframes logo-shake {
    0%, 100% {
      transform: none;
    }
  }
}
