/**
 * Trending Searches - Optimized CSS
 * AIClips V2 Theme
 *
 * Production-ready, minimal, performant styles
 * Zero redundancy | Dark mode ready | Accessible
 */

/* ============================================
   FIRE PULSE ANIMATION (HOT ITEMS)
   ============================================ */

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

.hot-icon {
    animation: fire-pulse 1.5s ease-in-out infinite;
    transform-origin: center;
}

/* Pause animation on hover for better UX */
.trending-pill:hover .hot-icon {
    animation-play-state: paused;
}

/* ============================================
   PILL FADE-IN ANIMATION
   ============================================ */

@keyframes pill-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trending-pill {
    animation: pill-fade-in 0.4s ease-out backwards;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Staggered animation delays for smooth entrance */
.trending-pill:nth-child(1) { animation-delay: 0ms; }
.trending-pill:nth-child(2) { animation-delay: 50ms; }
.trending-pill:nth-child(3) { animation-delay: 75ms; }
.trending-pill:nth-child(4) { animation-delay: 100ms; }
.trending-pill:nth-child(5) { animation-delay: 125ms; }
.trending-pill:nth-child(6) { animation-delay: 150ms; }

/* ============================================
   TRANSITIONS
   ============================================ */

/* Icon color transitions */
.trending-pill i {
    transition: color 0.2s ease;
}

/* Remove transform effects on hover/active */
.trending-pill:hover,
.trending-pill:active {
    transform: none;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states for keyboard navigation */
.trending-pill:focus-visible {
    outline: 2px solid #8a7fff;
    outline-offset: 2px;
}

.dark .trending-pill:focus-visible {
    outline-color: #a89fff;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Mobile optimizations */
@media (max-width: 640px) {
    .trending-pill {
        animation-duration: 0.3s;
        min-height: 36px;
        touch-action: manipulation;
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .trending-pill,
    .hot-icon {
        animation: none;
        transition: none;
    }
}