/* =====================================================
   HEADER COMMENTS BADGE - Indicador de comentarios del dia (Admin)
   ===================================================== */

.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px 4px 8px;
    border-radius: 16px;
    font-family: inherit;
    cursor: pointer;
    margin: 0 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
    animation: hc-fadeIn 0.5s ease;
    flex-shrink: 0;
    height: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.22) 50%, rgba(99, 102, 241, 0.28) 100%);
    color: #e0d4fd;
    border: 1px solid rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.18), 0 0 4px rgba(139, 92, 246, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.hc-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.40), 0 0 6px rgba(139, 92, 246, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hc-badge-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #a78bfa;
    filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.40));
}

.hc-badge-count {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
    color: #e0d4fd;
    text-shadow: 0 0 6px rgba(139, 92, 246, 0.35);
}

.hc-badge-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    color: #d4c4f7;
}

/* Sin comentarios hoy */
.hc-badge-empty {
    background: rgba(108, 117, 125, 0.18);
    color: #c0c5ca;
    border: 1px solid rgba(108, 117, 125, 0.30);
    opacity: 0.7;
    box-shadow: none;
}

.hc-badge-empty .hc-badge-icon {
    color: #9ba3ab;
    filter: none;
}

.hc-badge-empty .hc-badge-count {
    color: #c0c5ca;
    text-shadow: none;
}

/* Hay comentarios nuevos: pulso suave */
.hc-badge-active {
    animation: hc-fadeIn 0.5s ease, hc-purple-glow 3s ease-in-out infinite;
}

/* Shimmer sweep violeta */
.hc-badge:not(.hc-badge-empty)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.18) 40%, rgba(255, 255, 255, 0.20) 50%, rgba(139, 92, 246, 0.18) 60%, transparent 100%);
    animation: hc-shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* --- Animaciones --- */

@keyframes hc-fadeIn {
    from { opacity: 0; transform: translateX(-10px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes hc-purple-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.18), 0 0 3px rgba(139, 92, 246, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 0 16px rgba(139, 92, 246, 0.38), 0 0 28px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}

@keyframes hc-shimmer-sweep {
    0% { left: -100%; }
    30% { left: 100%; }
    100% { left: 100%; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hc-badge-label {
        display: none;
    }
    .hc-badge {
        padding: 5px 10px;
    }
}
