/* ==========================================================================
   WEB INVISION — REAL-TIME RANKINGS LIVE CSS
   Compatível com todos os temas (Default, Blue, Red, Devias, Junkielists)
   ========================================================================== */

/* Live Status Badge / Pill */
.rank-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    vertical-align: middle;
}

.rank-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
    animation: rankLivePulse 1.8s infinite;
}

@keyframes rankLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Subtle animation when a ranking row/card updates in real-time */
.rank-row-updated {
    animation: rankFlashHighlight 1.5s ease-out;
}

@keyframes rankFlashHighlight {
    0% {
        background-color: rgba(59, 130, 246, 0.25) !important;
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.4) inset;
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* Position change arrow indicators */
.rank-pos-change {
    font-size: 9px;
    font-weight: 800;
    margin-left: 2px;
}
.rank-pos-up {
    color: #10b981;
}
.rank-pos-down {
    color: #ef4444;
}

/* Fast fade transition for rank container items */
.rank-fade-enter {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.rank-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* Timer label */
.rank-live-timer {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 8px;
    font-weight: 500;
}
