/*
 * 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.
 */

/* Action Cable Price Update Animation */
.price-updated {
  animation: pricePulse 2s ease-in-out;
}

@keyframes pricePulse {
  0% {
    transform: scale(1);
    background-color: transparent;
  }
  50% {
    transform: scale(1.1);
    background-color: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
  }
  100% {
    transform: scale(1);
    background-color: transparent;
  }
}

/* Animated underline for nav link */
.link-underline-animate {
  position: relative;
  display: inline-block;
}

.link-underline-animate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #065f46; /* dark green */
  transition: width 250ms ease;
}

.link-underline-animate:hover::after,
.link-underline-animate:focus-visible::after {
  width: 100%;
}
