/**
 * Category Information Badge Styles
 * Animated inline badges for list items in category information sections
 */

.elins-category-description ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.elins-category-description ul li {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    animation: badgeFadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.elins-category-description ul li:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
}

.elins-category-description ul li a,
.elins-category-description a:not(table a) {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6 !important;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.elins-category-description ul li a::before,
.elins-category-description a:not(table a)::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3b82f6;
    animation: pulseDiscBlue 2s infinite;
}

.elins-category-description ul li a:hover,
.elins-category-description a:not(table a):hover {
    border-color: #2563eb;
    color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .elins-category-description ul li {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .elins-category-description ul li:hover {
        box-shadow: none !important;
    }

    .elins-category-description ul li a,
    .elins-category-description a:not(table a) {
        border-color: #fbbf24;
        color: #fbbf24 !important;
    }

    .elins-category-description ul li a::before,
    .elins-category-description a:not(table a)::before {
        background-color: #fbbf24;
        animation: pulseDiscGold 2s infinite;
    }

    .elins-category-description ul li a:hover,
    .elins-category-description a:not(table a):hover {
        border-color: #f59e0b;
        color: #f59e0b !important;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
    }
}

/* Dark mode class support for manual dark mode */
.dark .elins-category-description ul li {
    background: transparent !important;
    box-shadow: none !important;
}

.dark .elins-category-description ul li:hover {
    box-shadow: none !important;
}

.dark .elins-category-description ul li a,
.dark .elins-category-description a:not(table a) {
    border-color: #fbbf24;
    color: #fbbf24 !important;
}

.dark .elins-category-description ul li a::before,
.dark .elins-category-description a:not(table a)::before {
    background-color: #fbbf24;
    animation: pulseDiscGold 2s infinite;
}

.dark .elins-category-description ul li a:hover,
.dark .elins-category-description a:not(table a):hover {
    border-color: #f59e0b;
    color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

/* Staggered animation delays for list items */
.elins-category-description ul li:nth-child(1) { animation-delay: 0.1s; }
.elins-category-description ul li:nth-child(2) { animation-delay: 0.2s; }
.elins-category-description ul li:nth-child(3) { animation-delay: 0.3s; }
.elins-category-description ul li:nth-child(4) { animation-delay: 0.4s; }
.elins-category-description ul li:nth-child(5) { animation-delay: 0.5s; }
.elins-category-description ul li:nth-child(6) { animation-delay: 0.6s; }
.elins-category-description ul li:nth-child(7) { animation-delay: 0.7s; }
.elins-category-description ul li:nth-child(8) { animation-delay: 0.8s; }
.elins-category-description ul li:nth-child(9) { animation-delay: 0.9s; }
.elins-category-description ul li:nth-child(10) { animation-delay: 1s; }
.elins-category-description ul li:nth-child(n+11) { animation-delay: 1s; }

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseDiscBlue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes pulseDiscGold {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
