/* Futuristic Event Platform - Animations CSS */

/* Splash Screen & Loaders */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-base);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-logo-container {
  position: relative;
  animation: pulse-glow 2s infinite alternate;
}

.splash-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-glow);
  color: transparent;
  background-size: 300% 300%;
  animation: gradient-shift 3s ease infinite;
  letter-spacing: 2px;
}

.splash-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: float-up 3s ease-in-out infinite;
  opacity: 0;
}

/* Page Transitions */
.page-transition-enter {
  animation: slide-up-fade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* Keyframes */
@keyframes slide-up-fade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.8));
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float-up {
  0% {
    transform: translateY(100px) scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes glow-border {

  0%,
  100% {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  }

  50% {
    border-color: rgba(112, 0, 255, 0.6);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.3);
  }
}

.animated-border {
  animation: glow-border 3s infinite;
}

/* Success Animations */
.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--accent-primary);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--accent-primary);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
  margin: 0 auto 20px;
}

.success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--accent-primary);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(0, 240, 255, 0.1);
  }
}

/* Typing Effect for Search */
.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-primary);
  animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-primary);
  }
}

/* Hover Shimmer */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  transition: all 0.5s;
  opacity: 0;
}

.shimmer-hover:hover::after {
  opacity: 1;
  left: 50%;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-neon);
  animation: progress-fill 3s ease-in-out forwards;
}
@keyframes progress-fill {
  0% { width: 0%; }
  30% { width: 40%; }
  70% { width: 80%; }
  100% { width: 100%; }
}

/* Confetti particles */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent-primary);
  animation: confetti-fall 3s linear infinite;
  opacity: 0;
}
@keyframes confetti-fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(300px) rotate(360deg); opacity: 0; }
}