/* Ellipsis menu styles */
.post-menu-wrapper {
    position: relative;
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.post-menu-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.post-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: var(--z-menu);
    margin-top: 4px;
    flex-direction: column;
    overflow: hidden;
}

/* Open menu upward when it would go off-screen */
.post-dropdown-menu.open-upward {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.post-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-dropdown-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.post-dropdown-menu .menu-item:hover {
    background: var(--bg-dark);
}

.post-dropdown-menu .menu-item i {
    width: 16px;
    text-align: center;
}

.post-dropdown-menu .menu-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.post-dropdown-menu .menu-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}