/* Reaction animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes reactionBurst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.2s ease-out;
}

.animate-pulse-once {
  animation: pulseOnce 0.6s ease-in-out;
}

.reaction-burst {
  animation: reactionBurst 0.6s ease-out;
}

/* Reaction picker styles */
.reaction-picker {
  position: relative;
}

.reaction-options {
  z-index: 50;
}

.reaction-button {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.reaction-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.reaction-button:hover::before {
  width: 100px;
  height: 100px;
}

/* Reaction summary modal */
.reaction-details {
  animation: fadeIn 0.2s ease-out;
}

.reaction-details .inline-block {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s ease-out;
}

.reaction-details.opacity-100 .inline-block.scale-100 {
  transform: scale(1);
  opacity: 1;
}

/* Reaction emoji hover effect */
.reaction-emoji {
  transition: transform 0.2s ease;
}

.reaction-emoji:hover {
  transform: scale(1.2);
}

/* Mobile touch feedback */
@media (hover: none) {
  .reaction-button:active {
    transform: scale(0.95);
  }
}

/* Keyboard focus styles */
.reaction-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem;
}

.reaction-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}