/* ============================================
   InfluenceHub – Global prefers-reduced-motion audit
   - A single, last-loaded safety net that disables
     animations and transitions across the entire
     site when the user prefers reduced motion.
   - Complements the per-component reduced-motion
     rules already present in every companion CSS
     file, catching anything new that might be
     added later.
   - Also disables smooth scrolling and any
     transform-based hover/focus effects.
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  /* ---------- Global: disable all animations and transitions ---------- */

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* ---------- Disable smooth scrolling ---------- */

  html,
  html.scroll-smooth {
    scroll-behavior: auto !important;
  }

  /* ---------- Neutralise transform-based hover/focus effects ---------- */

  /* Cards, buttons, chips and links should not lift, scale or slide. */
  .card-lift:hover,
  .card-lift:focus,
  [data-influencer-card]:hover,
  [data-influencer-card]:focus,
  .reveal,
  .reveal:hover,
  .reveal:focus {
    transform: none !important;
  }

  /* ---------- Disable pulse / bump animations ---------- */

  .is-bumped,
  .inbox-birthday-count-badge.is-bumped,
  .sent-birthday-count-badge.is-bumped,
  .inbox-recency-badge.is-bumped,
  .sent-recency-badge.is-bumped {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* ---------- Disable skeleton pulse ---------- */

  .skeleton-block,
  .skeleton-block::before,
  .skeleton-block::after {
    animation: none !important;
  }

  /* ---------- Disable toast slide-in ---------- */

  .toast-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* ---------- Disable modal fade/pop ---------- */

  .auth-modal,
  .auth-panel,
  .auth-backdrop,
  .confirm-modal,
  .confirm-modal-panel,
  .confirm-modal-backdrop {
    animation: none !important;
    transition: none !important;
  }

  /* ---------- Disable bulk bar slide-in ---------- */

  #bulk-action-bar,
  #bulk-action-bar.is-visible {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  /* ---------- Disable image zoom on hover ---------- */

  .card-lift:hover img,
  [data-influencer-card]:hover img {
    transform: none !important;
  }

  /* ---------- Disable FAQ chevron rotation ---------- */

  .faq-icon,
  .filters-toggle-chevron {
    transition: none !important;
    transform: none !important;
  }

  /* ---------- Disable theme icon cross-fade ---------- */

  .theme-icon {
    transition: none !important;
    animation: none !important;
  }
}
