/* CS_FAQ_LUCIDE_ANIMATION_RESTORE_20260509
   FAQ-only animation layer for self-hosted Lucide SVG icons.
   Loaded only on faq.php.
*/

@keyframes csFaqIconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(220, 38, 38, 0));
  }
  50% {
    transform: translateY(-3px) scale(1.045);
    filter: drop-shadow(0 8px 12px rgba(220, 38, 38, 0.18));
  }
}

@keyframes csFaqIconBoxGlow {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(220, 38, 38, 0.14);
  }
  50% {
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.16), inset 0 0 0 1px rgba(220, 38, 38, 0.28);
  }
}

/* Actual FAQ icon boxes found in faq.php */
.category-icon,
.faq-cta-icon {
  animation: csFaqIconBoxGlow 3.8s ease-in-out infinite;
}

/* Main visible icons */
.category-icon svg.lucide,
.faq-cta-icon svg.lucide,
.faq-sidebar svg.lucide,
.search-icon,
.popular-question-icon {
  transform-box: fill-box;
  transform-origin: center;
  animation: csFaqIconFloat 3.2s ease-in-out infinite;
  transition: transform 180ms ease, filter 180ms ease, stroke 180ms ease;
}

/* Stagger so everything does not move together */
.faq-sidebar a:nth-child(2n) svg.lucide,
.faq-category:nth-of-type(2n) .category-icon svg.lucide {
  animation-delay: .35s;
}

.faq-sidebar a:nth-child(3n) svg.lucide,
.faq-category:nth-of-type(3n) .category-icon svg.lucide {
  animation-delay: .7s;
}

/* Hover polish */
.faq-sidebar a:hover svg.lucide,
.faq-category:hover .category-icon svg.lucide,
.popular-question:hover .popular-question-icon,
.faq-cta-icon:hover svg.lucide {
  transform: translateY(-2px) scale(1.09);
  filter: drop-shadow(0 10px 14px rgba(220, 38, 38, 0.22));
}

/* Do not fight FAQ accordion behaviour */
.faq-icon-wrapper svg.lucide,
svg.lucide-chevron-down,
#backToTop svg.lucide {
  animation: none !important;
  filter: none !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .category-icon,
  .faq-cta-icon,
  .category-icon svg.lucide,
  .faq-cta-icon svg.lucide,
  .faq-sidebar svg.lucide,
  .search-icon,
  .popular-question-icon {
    animation: none !important;
    transition: none !important;
  }
}
