/* reactions-styles.css */
.comment-reactions {
    display: inline-block;
    position: relative;
    margin: 8px 0;
    vertical-align: middle;
}

.reactions-toggle {
    background: #f0f2f5;
    border: 1px solid #ccd0d5;
    border-radius: 18px;
    padding: 5px 12px;
    font-size: 14px;
    cursor: pointer;
    color: #65676b;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reactions-toggle:hover {
    background: #e4e6eb;
    border-color: #bcc0c4;
}

.reaction-emoji {
    font-size: 16px;
}

.reactions-count {
    font-weight: 600;
    font-size: 13px;
}

.reactions-popup {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 1000;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    min-width: 180px;
}

.reaction-item {
    position: relative;
    text-align: center;
}

.reaction-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.reaction-btn:hover {
    background: #f0f2f5;
    transform: scale(1.15);
}

.reaction-btn.has-reactions {
    background: #e7f3ff;
}

.reaction-btn.voting {
    opacity: 0.6;
    cursor: wait;
}

.reaction-btn.voted {
    animation: bounce 0.3s ease;
}

.reaction-count {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #65676b;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Для uCoz комментариев */
.uCommentsItem .comment-reactions {
    margin-left: 10px;
}