/* Unified post ⋮ menu */
.wp-post-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.wp-post-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #5c6f64;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.wp-post-menu-btn:hover,
.wp-post-menu.is-open .wp-post-menu-btn {
    background: #e8f5ef;
    color: #0d7a4a;
}

.wp-post-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1060;
    min-width: 220px;
    background: #fff;
    border: 1px solid #d5e0db;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(13, 122, 74, 0.14);
    padding: 8px;
    display: none;
}

.wp-post-menu.is-open .wp-post-menu-panel {
    display: block;
}

.wp-post-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #142820;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}

.wp-post-menu-item:hover {
    background: #f0f7f3;
    color: #0d7a4a;
    text-decoration: none;
}

.wp-post-menu-danger,
.wp-post-menu-danger:hover {
    color: #c0392b;
}

.wp-post-menu-danger:hover {
    background: #fdecea;
}

.wp-pmi-icon {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.wp-pmi-label {
    flex: 1;
    line-height: 1.3;
}

.feed-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 10px;
}

.feed-header-info {
    flex: 1;
    min-width: 0;
}

/* Report modal */
.wp-report-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10300;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wp-report-overlay.is-open {
    display: flex;
}

.wp-report-box {
    background: #fff;
    border-radius: 16px;
    width: min(440px, 96vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wp-report-hd {
    padding: 18px 22px;
    background: linear-gradient(135deg, #056636, #27ae60);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wp-report-hd h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.wp-report-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.wp-report-body {
    padding: 22px;
}

.wp-report-lead {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    color: #4a5f54;
    line-height: 1.55;
}

.wp-report-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.wp-report-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8e5;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.wp-report-opt:has(input:checked) {
    border-color: #0d7a4a;
    background: #e8f5ef;
}

.wp-report-opt input {
    margin-top: 3px;
    accent-color: #0d7a4a;
}

.wp-report-opt span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #142820;
    line-height: 1.4;
}

.wp-report-note label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #5c6f64;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wp-report-note textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border: 1.5px solid #d5e0db;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    box-sizing: border-box;
}

.wp-report-actions {
    display: flex;
    gap: 10px;
    padding: 0 22px 22px;
}

.wp-report-cancel,
.wp-report-submit {
    flex: 1;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.wp-report-cancel {
    border: 1.5px solid #d5e0db;
    background: #fff;
    color: #3d5248;
}

.wp-report-submit {
    border: none;
    background: #e67e22;
    color: #fff;
}

.wp-report-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wp-report-toast {
    display: none;
    margin: 0 22px 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.wp-report-toast.success {
    display: block;
    background: #e8f5ef;
    color: #0d7a4a;
}

.wp-report-toast.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
}

/* Action toast (copy link, bookmark, hide) */
.wp-post-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 10400;
    background: #142820;
    color: #fff;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    pointer-events: none;
}

.wp-post-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Save-to-bookmarks collection picker */
.wp-bookmark-save-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.wp-bookmark-save-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e4ece7;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a2e24;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.wp-bookmark-save-opt:hover {
    border-color: #27ae60;
    background: #f4fbf6;
}

.wp-bookmark-save-opt .wp-bm-save-icon {
    font-size: 1.1rem;
}

.wp-bookmark-save-add-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: #27ae60;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 0;
}

.wp-bookmark-save-new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.wp-bookmark-save-new input {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1.5px solid #d5e0db;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
}

.wp-bookmark-save-new-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #27ae60;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

.feed-repost-top {
    position: relative;
}

.feed-repost-menu-wrap {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
}

/* Themed confirm dialog */
.wp-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10350;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wp-confirm-overlay.is-open {
    display: flex;
}

.wp-confirm-box {
    background: #fff;
    border-radius: 16px;
    width: min(420px, 96vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wp-confirm-hd {
    padding: 18px 22px;
    background: linear-gradient(135deg, #056636, #27ae60);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wp-confirm-hd h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.wp-confirm-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.wp-confirm-body {
    padding: 22px;
}

.wp-confirm-body p {
    margin: 0;
    font-size: 1rem;
    color: #3d5248;
    line-height: 1.6;
}

.wp-confirm-actions {
    display: flex;
    gap: 10px;
    padding: 0 22px 22px;
}

.wp-confirm-cancel,
.wp-confirm-ok {
    flex: 1;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.wp-confirm-cancel {
    border: 1.5px solid #d5e0db;
    background: #fff;
    color: #3d5248;
}

.wp-confirm-ok {
    border: none;
    background: #e67e22;
    color: #fff;
}

.wp-confirm-ok.is-danger {
    background: #c0392b;
}

.wp-confirm-ok:hover {
    filter: brightness(0.95);
}

/* In-feed undo bar (replaces removed post card) */
.wp-post-undo-bar {
    max-width: 500px;
    margin: 15px auto 25px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f7f3 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #b8dcc8;
    box-shadow: 0 2px 12px rgba(13, 122, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    animation: wpUndoBarIn 0.35s ease;
}

@keyframes wpUndoBarIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-post-undo-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #142820;
    line-height: 1.4;
}

.wp-post-undo-text small {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #5c6f64;
    margin-top: 2px;
}

.wp-post-undo-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background: #0d7a4a;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.wp-post-undo-btn:hover {
    background: #065f37;
}

.feed-card.wp-card-dismissing {
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}