/**
 * Unread Badge Counter Styles
 * Professional animated badge for navbar
 */

/* ========================================
   UNREAD BADGE COUNTER
   ======================================== */

.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
    border: 2px solid var(--bg-primary);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

/* Dark mode badge */
[data-theme="dark"] .nav-badge {
    border-color: var(--bg-dark);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
}

/* Hover effect */
.nav-link:hover .nav-badge {
    animation: none;
    transform: scale(1.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-badge {
        top: 8px;
        right: 8px;
        font-size: 10px;
        padding: 1px 5px;
        min-width: 16px;
        height: 16px;
    }
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .nav-badge {
        animation: none;
    }
}