.reaction-trigger {
    padding: 6px 12px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.reaction-trigger:hover {
    background: var(--bs-secondary-bg);
}

.reaction-trigger.active {
    background: var(--bs-secondary-bg);
}

.reaction-popup {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    white-space: nowrap;
    min-width: max-content;
}

.reaction-popup.show {
    display: flex;
    gap: 4px;
}

.reaction-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bs-border-color);
}

.reaction-popup button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--bs-body-color);
}

.reaction-popup button:hover {
    background: var(--bs-secondary-bg);
    transform: scale(1.1);
}

.reaction-counts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reaction-counts span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bs-secondary-bg);
    border-radius: 12px;
    font-size: 12px;
}

.reaction-counts span i {
    font-size: 14px;
}

/* Post actions styling */
.post-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    border-radius: 0 0 8px 8px;
    margin-top: 12px;
}

/* Comment and Share buttons styling */
.btn-comment,
.btn-share {
    padding: 6px 12px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-comment:hover,
.btn-share:hover {
    background: var(--bs-body-bg);
}

.btn-comment i,
.btn-share i {
    font-size: 14px;
}

/* Dark mode specific styles */
[data-bs-theme="dark"] .post-actions {
    background: #1a1d20;
    border-top: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .btn-comment,
[data-bs-theme="dark"] .btn-share,
[data-bs-theme="dark"] .reaction-trigger {
    background: #2d3238;
    border-color: #373d44;
    color: #e9ecef;
}

[data-bs-theme="dark"] .btn-comment:hover,
[data-bs-theme="dark"] .btn-share:hover,
[data-bs-theme="dark"] .reaction-trigger:hover {
    background: #373d44;
    border-color: #454d55;
}

[data-bs-theme="dark"] .reaction-counts span {
    background: #2d3238;
    border: 1px solid #373d44;
    color: #e9ecef;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .reaction-popup {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 360px;
        justify-content: space-around;
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 0;
    }

    .reaction-popup::after {
        display: none;
    }

    .reaction-option {
        font-size: 1.4em;
    }

    .reaction-counts {
        font-size: 0.8em;
    }
}
