/* KolRank Versus Fresh CSS */

/* ===== Layout General ===== */
.kvf-duel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px auto;
    max-width: 900px;
}

.kvf-profile {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.kvf-profile:hover {
    transform: scale(1.05);
}

.kvf-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* ==== Nombres debajo de las fotos ==== */
.kvf-name {
    font-weight: bold;
    font-size: 17px;
    color: #fff;               /* ✅ Blanco fijo */
    margin-top: 6px;
}

.kvf-name a {
    color: #fff !important;    /* ✅ Links siempre en blanco */
    text-decoration: none;
}

.kvf-name a:visited {
    color: #fff !important;    /* ✅ Visitados también blancos */
}

.kvf-name a:hover {
    color: #1e90ff !important; /* ✅ Hover azul (DodgerBlue) */
}

/* ===== Icono VS ===== */
.kvf-vs {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kvf-vs-icon {
    width: 120px;
    height: auto;
    object-fit: contain;
    animation: vsPulse 2s ease-in-out infinite; /* palpitación */
}

@keyframes vsPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ===== Animaciones Glow ===== */

/* Ganador (dorado) */
.kvf-profile.winner-glow img {
    animation: winnerEffect 1s forwards;
}
@keyframes winnerEffect {
    0% { box-shadow: 0 0 15px #FFD700; opacity: 1; }
    100% { box-shadow: 0 0 40px #FFD700; opacity: 0; transform: scale(1.1); }
}

/* Perdedor (rojo) */
.kvf-profile.loser-glow img {
    animation: loserEffect 1s forwards;
}
@keyframes loserEffect {
    0% { box-shadow: 0 0 15px #FF0000; opacity: 1; }
    100% { box-shadow: 0 0 40px #FF0000; opacity: 0; transform: scale(0.9); }
}

/* Nuevos perfiles (verde entrada) */
.kvf-profile.new-glow img {
    animation: newEffect 1s forwards;
}
@keyframes newEffect {
    0% { opacity: 0; box-shadow: 0 0 40px #00e0c6; transform: scale(0.8); }
    100% { opacity: 1; box-shadow: 0 0 10px #00e0c6; transform: scale(1); }
}

/* Ranking Glow */
#kr-ranking.ranking-glow {
    animation: rankingEffect 1s forwards;
}
@keyframes rankingEffect {
    0% { box-shadow: 0 0 20px #00e0c6; }
    100% { box-shadow: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .kvf-duel {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .kvf-photo {
        width: 250px;
        height: 250px;
    }
    
    .kvf-vs-icon {
        width: 80px;
        transform: rotate(90deg); /* VS vertical en móviles */
    }
}

@media (max-width: 480px) {
    .kvf-duel {
        gap: 15px;
        padding: 0 15px;
    }
    
    .kvf-photo {
        width: 200px;
        height: 200px;
    }
    
    .kvf-vs-icon {
        width: 60px;
    }
    
    .kvf-name {
        font-size: 15px;
    }
}