/*--------------------------------------------------------------
>>> MENU STATS AND BADGES
----------------------------------------------------------------
Download counts and category badges for menu items
--------------------------------------------------------------*/

/* Post Count Badge */
.menu-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 11px;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.platform-menu a:hover .menu-stat {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

/* Hot and New Badges */
.menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hot Badge - Fire Theme */
.hot-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    animation: pulse 2s ease-in-out infinite;
}

.hot-badge i {
    font-size: 11px;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* New Badge - Sparkle Theme */
.new-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    animation: glow 2s ease-in-out infinite;
}

.new-badge i {
    font-size: 11px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
    }
}

/* Mobile Menu Specific Adjustments */
@media (max-width: 991px) {
    .platform-menu a {
        flex-wrap: wrap;
        position: relative;
    }

    .menu-stat {
        position: absolute;
        top: 12px;
        right: 16px;
    }

    .menu-badge {
        margin-left: 0;
        margin-top: 6px;
    }

    /* Ensure badges don't overlap with icons */
    .platform-menu a i:first-child {
        margin-right: auto;
    }
}
/* Hide Stats and Badges on Desktop */
@media (min-width: 992px) {
    .menu-stat,
    .menu-badge,
    .hot-badge,
    .new-badge {
        display: none !important;
    }
}
