/* Comment Reactions (Telegram-Style Emoji Reactions) */
.comment-reactions-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
    position: relative;
}

.comment-reaction-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.comment-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
}

.comment-reaction-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.comment-reaction-pill.is-active {
    background: rgba(168, 85, 247, 0.18);
    border-color: #a855f7;
    color: #e9d5ff;
    font-weight: 600;
}

.comment-reaction-pill .pill-emoji {
    font-size: 14px;
    line-height: 1;
}

.comment-reaction-pill .pill-count {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

/* Trigger Button */
.comment-reaction-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease-in-out;
    padding: 0;
}

.comment-reaction-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #c084fc;
    color: #c084fc;
    transform: scale(1.05);
}

/* Reaction Flyout Popup */
.comment-reaction-picker {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: auto;
    z-index: 50;
    display: none;
    background: #1e1b2e;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 30px;
    padding: 4px 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    animation: reactionPickerPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 4px;
}

.comment-reaction-picker.is-open {
    display: flex;
    align-items: center;
}

.reaction-picker-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: transform 0.15s ease, background 0.15s ease;
    user-select: none;
}

.reaction-picker-btn:hover {
    transform: scale(1.35);
    background: rgba(255, 255, 255, 0.12);
}

.reaction-picker-btn:active {
    transform: scale(1.1);
}

@keyframes reactionPickerPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
