/* Live match updates animations */

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

@keyframes subtle-fade-in {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Pulse animation for updated sections */
.pulse-update {
  animation: pulse-glow 1s ease-out;
}

/* Fade in animation for Turbo Stream updates */
.turbo-stream-update {
  animation: subtle-fade-in 0.5s ease-in;
}

/* Live indicator dot */
.live-indicator {
  position: relative;
  display: inline-block;
}

.live-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Goal celebration flash */
@keyframes goal-flash {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(34, 197, 94, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.goal-celebration {
  animation: goal-flash 0.8s ease-in-out;
}
