/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reaction Animations */
@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
  }
}

@keyframes float-up-random {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.8);
  }
}

@keyframes pulsing {
  0% {
    transform: scale(1);
  }

  70% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulse-small {
  0% {
    transform: scale(.9);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(.9);
  }
}

.reaction-container {
  position: relative;
  overflow: hidden;
}

.floating-reaction {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 24px; /* Base size, will be overridden by JavaScript */
  user-select: none;
  transition: font-size 0.1s ease-out; /* Smooth size transitions */
}

.reaction-profile {
  position: absolute;
  border-radius: 50%;
  background-color: #f04124;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 10000; /* Ensure profile appears above emoji */
}

.pulsing-small {
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 1);
  transform: scale(.9);
  animation: pulse-small 1s infinite, pulse-shadow 1s infinite;
  opacity: 1 !important;
}

.pulsing {
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 1);
  transform: scale(1.5);
  animation: pulsing 1s infinite, pulse-shadow 1s infinite;
  opacity: 1 !important;
}
