/** 
 * reactions.css - Estilos profesionales para barra flotante izquierda
 */

:root {
    --reaction-bg: #ffffff;
    --reaction-bg-hover: #f3f4f6;
    --reaction-text: #6b7280;
    --reaction-active-text: #7c3aed;
    --reaction-active-bg: #f5f3ff;
    --reaction-active-hover: #ede9fe;
    --reaction-counter: #374151;
    --reaction-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --reaction-shadow-active: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* === BARRA FLOTANTE LATERAL IZQUIERDA === */
.floating-reaction-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    width: 56px;
    align-items: center;
}

.floating-reaction-bar .reaction-button,
.floating-reaction-bar .btn-reaction-float {
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--reaction-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.floating-reaction-bar .reaction-button:hover,
.floating-reaction-bar .btn-reaction-float:hover {
    background: var(--reaction-bg-hover);
    color: #374151;
}

.floating-reaction-bar .reaction-button:active,
.floating-reaction-bar .btn-reaction-float:active {
    transform: scale(0.92);
}

/* ==============================
   COLORES POR TIPO DE REACCIÓN
   ============================== */

/* LIKE – verde */
.blog-reactions .reaction-button[data-reaction="like"].active,
.comment-reactions .reaction-comment-btn[data-reaction="like"].active,
.floating-reaction-bar .reaction-button[data-reaction="like"].active {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border-color: #86efac !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2) !important;
}

.blog-reactions .reaction-button[data-reaction="like"]:hover,
.comment-reactions .reaction-comment-btn[data-reaction="like"]:hover,
.floating-reaction-bar .reaction-button[data-reaction="like"]:hover {
    background: #bbf7d0 !important;
}

/* LOVE – rojo */
.blog-reactions .reaction-button[data-reaction="love"].active,
.comment-reactions .reaction-comment-btn[data-reaction="love"].active,
.floating-reaction-bar .reaction-button[data-reaction="love"].active {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    border-color: #fda4af !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2) !important;
}

.blog-reactions .reaction-button[data-reaction="love"]:hover,
.comment-reactions .reaction-comment-btn[data-reaction="love"]:hover,
.floating-reaction-bar .reaction-button[data-reaction="love"]:hover {
    background: #fecdd3 !important;
}

/* IDEA – amarillo/dorado */
.blog-reactions .reaction-button[data-reaction="idea"].active,
.comment-reactions .reaction-comment-btn[data-reaction="idea"].active,
.floating-reaction-bar .reaction-button[data-reaction="idea"].active {
    background: #fef9c3 !important;
    color: #ca8a04 !important;
    border-color: #fde047 !important;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.2) !important;
}

.blog-reactions .reaction-button[data-reaction="idea"]:hover,
.comment-reactions .reaction-comment-btn[data-reaction="idea"]:hover,
.floating-reaction-bar .reaction-button[data-reaction="idea"]:hover {
    background: #fef08a !important;
}

/* FIRE – naranja */
.blog-reactions .reaction-button[data-reaction="fire"].active,
.comment-reactions .reaction-comment-btn[data-reaction="fire"].active,
.floating-reaction-bar .reaction-button[data-reaction="fire"].active {
    background: #ffedd5 !important;
    color: #ea580c !important;
    border-color: #fdba74 !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2) !important;
}

.blog-reactions .reaction-button[data-reaction="fire"]:hover,
.comment-reactions .reaction-comment-btn[data-reaction="fire"]:hover,
.floating-reaction-bar .reaction-button[data-reaction="fire"]:hover {
    background: #ffedd5 !important;
}

/* ==============================
   ESTILOS BASE para reacciones en replies (.thread-reactions)
   ============================== */
.thread-reactions {
    display: flex;
    gap: 2px;
    margin-top: 8px;
    align-items: center;
}

.thread-reaction-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--reaction-text);
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.thread-reaction-btn:hover {
    background: var(--reaction-bg-hover);
    color: #374151;
}

.thread-reaction-btn:active {
    transform: scale(0.92);
}

.thread-reaction-btn i {
    font-size: 0.85rem;
}

.thread-reaction-btn .count {
    font-size: 0.7rem;
    min-width: 8px;
    display: inline-block;
}

/* Estados activos para thread-reaction-btn */
.thread-reaction-btn[data-reaction="like"].active {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border-color: #86efac !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2) !important;
}

.thread-reaction-btn[data-reaction="love"].active {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    border-color: #fda4af !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2) !important;
}

.thread-reaction-btn[data-reaction="fire"].active {
    background: #ffedd5 !important;
    color: #ea580c !important;
    border-color: #fdba74 !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2) !important;
}

.thread-reaction-btn[data-reaction="idea"].active {
    background: #fef9c3 !important;
    color: #ca8a04 !important;
    border-color: #fde047 !important;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.2) !important;
}

.thread-reaction-btn[data-reaction="like"]:hover {
    background: #bbf7d0 !important;
}

.thread-reaction-btn[data-reaction="love"]:hover {
    background: #fecdd3 !important;
}

.thread-reaction-btn[data-reaction="fire"]:hover {
    background: #ffedd5 !important;
}

.thread-reaction-btn[data-reaction="idea"]:hover {
    background: #fef08a !important;
}