/* static/css/notifications.css */

.notification-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ef4444; /* red-500 */
    border-radius: 50%;
    border: 1.5px solid white;
    z-index: 10;
}

/* Ensure parents are relative for absolute positioning */
.nav-link, .tab-item, .tab-icon {
    position: relative !important;
}

/* PC Nav Link Red Dot */
.nav-link[id="pc-blog-link"] .notification-dot {
    top: 4px;
    right: 4px;
}

/* Mobile Tab Red Dot */
.tab-item[id="tab-blog"] .notification-dot {
    top: -2px;
    right: -2px;
}

/* "New" Badge Styles */
.badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    pointer-events: none;
    z-index: 5;
    
    /* Apply both animations */
    animation: 
        floating 2s ease-in-out infinite,
        glowing 1.5s ease-in-out infinite alternate;
}

/* Floating Animation (Up and Down) */
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Glowing Animation (Pulse Shadow) */
@keyframes glowing {
    from {
        box-shadow: 0 0 4px rgba(239, 68, 68, 0.4), 0 0 2px rgba(239, 68, 68, 0.2);
    }
    to {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.8), 0 0 6px rgba(239, 68, 68, 0.4);
    }
}
