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

/* Highlight animation for referral section */
@keyframes flash-border {
  0%, 100% {
    border-color: #CCAD66;
    box-shadow: 0 0 0 0 rgba(204, 173, 102, 0.7);
  }
  50% {
    border-color: #b89a50;
    box-shadow: 0 0 0 8px rgba(204, 173, 102, 0);
  }
}

.highlight-flash {
  animation: flash-border 2.5s ease-in-out 1;
  border-color: #CCAD66 !important;
}

.highlight-persistent {
  border-color: #CCAD66 !important;
}

/* Turbo Stream updates fade over (stream_transitions.js): a short cross-fade, none when motion is reduced */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 250ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
