
/* ==========================================================================
   MODERATION UI STYLES (Feb 22, 2026)
   ========================================================================== */

.hm-mod-menu-wrap {
    position: relative;
    display: inline-block;
    margin-left: var(--space-2);
}

.hm-mod-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--hm-bg-subtle);
    border: 1px solid var(--hm-border);
    border-radius: var(--radius-sm);
    color: var(--hm-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-mod-trigger:hover {
    background: var(--hm-primary-50);
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}

.hm-mod-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: var(--hm-bg-elevated);
    border: 1px solid var(--hm-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding: 6px 0;
    margin-top: 4px;
    list-style: none;
    display: none;
    animation: unh-fadeIn 0.2s ease-out;
}

.hm-mod-dropdown.open {
    display: block;
}

.hm-mod-dropdown li button {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--hm-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-mod-dropdown li button:hover {
    background: var(--hm-bg-subtle);
    color: var(--hm-text);
}

.hm-mod-danger {
    color: var(--hm-danger) !important;
}

.hm-mod-danger:hover {
    background: var(--hm-danger-light) !important;
}

/* Modal specific tweaks */
.hm-mod-modal .hm-modal-content {
    max-width: 400px;
}

.hm-mod-target-info {
    font-weight: 700;
    color: var(--hm-text-muted);
    margin-bottom: var(--space-4);
}

.hm-mod-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.hm-mod-status {
    padding: var(--space-4);
    text-align: center;
    font-size: 0.85rem;
}

/* Force card overflow visible when mod menu is active */
.ct-card.hm-mod-menu-open {
    overflow: visible !important;
    z-index: 100 !important;
}

.ct-card.hm-mod-menu-open .ct-card-footer {
    overflow: visible !important;
}

/* Ensure clicks pass through to the button */
.hm-mod-trigger * {
    pointer-events: none;
}
