/* ==========================================================================
   VENUS FM REACCIONES - ESTILOS PRINCIPALES
   ========================================================================== */

.vfm-reacciones-container {
    margin: 30px 0;
    padding: 25px;
    background-color: var(--bg-panel, #141414);
    border-radius: 15px;
    border: 1px solid #222;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
    width: 100%;
}

.vfm-reacciones-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.vfm-reacciones-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.vfm-btn-reaccion {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

/* Configuramos el contenedor de la imagen con mayor especificidad para evitar conflictos con el tema */
.vfm-reacciones-container .vfm-btn-reaccion .vfm-emoji-wrapper img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(80%); /* Apagados por defecto */
    opacity: 0.7;
    border: none;
    box-shadow: none;
}

.vfm-btn-reaccion .vfm-label {
    font-size: 0.75rem;
    color: var(--text-muted, #aaaaaa);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    transition: color 0.3s;
    text-align: center;
}

.vfm-btn-reaccion .vfm-count {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 900;
    background: #222;
    padding: 2px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

/* ==========================================================================
   ANIMACIONES DE HOVER Y CLIC
   ========================================================================== */

.vfm-btn-reaccion:hover:not(.voted) {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.vfm-btn-reaccion:hover:not(.voted) .vfm-emoji-wrapper img {
    transform: scale(1.15);
    filter: grayscale(0%); /* Cobra color */
    opacity: 1;
}

.vfm-btn-reaccion:hover:not(.voted) .vfm-label {
    color: #ffffff;
}

@keyframes emojiBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) translateY(-8px); }
    100% { transform: scale(1.1); }
}

/* ==========================================================================
   ESTADOS: VOTADO Y DESHABILITADO
   ========================================================================== */

/* Estado VOTADO (El activo) */
.vfm-btn-reaccion.voted {
    border-color: var(--accent-red, #e0003b);
    background-color: rgba(224, 0, 59, 0.1);
    pointer-events: none; 
}

.vfm-btn-reaccion.voted .vfm-emoji-wrapper img {
    animation: emojiBounce 0.5s ease forwards;
    filter: grayscale(0%);
    opacity: 1;
}

.vfm-btn-reaccion.voted .vfm-label {
    color: var(--accent-red, #e0003b);
}

.vfm-btn-reaccion.voted .vfm-count {
    background: var(--accent-red, #e0003b);
    color: #fff;
}

/* Estado DESHABILITADO (Los que no elegiste) */
.vfm-btn-reaccion.disabled .vfm-emoji-wrapper img {
    opacity: 0.3;
    filter: grayscale(100%);
}
.vfm-btn-reaccion.disabled .vfm-label {
    opacity: 0.5;
}

/* ==========================================================================
   MAGIA PARA MÓVILES (HORIZONTAL SIN DEFORMAR)
   ========================================================================== */
@media (max-width: 600px) {
    .vfm-reacciones-container {
        padding: 15px 5px; /* Reducimos el padding lateral para ganar espacio */
        margin: 20px 0;
    }

    .vfm-reacciones-title {
        font-size: 0.95rem; /* Achicamos un poco el título */
    }

    .vfm-reacciones-grid {
        flex-wrap: nowrap; /* FORZAMOS UNA SOLA LÍNEA HORIZONTAL */
        gap: 2px; /* Espacio mínimo entre botones */
        justify-content: space-between;
    }

    .vfm-btn-reaccion {
        min-width: 0; /* Vital: quitamos el ancho mínimo para que puedan encogerse */
        flex: 1; /* Se reparten el 100% del ancho en 5 partes iguales */
        padding: 8px 2px;
        border-radius: 8px; /* Bordes un poco menos pronunciados */
    }

    /* Emojis blindados para móviles */
    .vfm-reacciones-container .vfm-btn-reaccion .vfm-emoji-wrapper img {
        width: 32px !important; 
        height: 32px !important;
        max-width: 32px !important;
        margin-bottom: 4px;
    }

    .vfm-btn-reaccion .vfm-label {
        font-size: 0.55rem; /* Letra pequeña pero legible */
        line-height: 1.1; /* Permite que el texto salte de línea limpiamente */
        margin-bottom: 4px;
        letter-spacing: -0.2px;
        word-wrap: break-word; /* Si la palabra es muy larga, salta de línea */
    }

    .vfm-btn-reaccion .vfm-count {
        font-size: 0.75rem;
        padding: 1px 6px;
    }
}