/* Saved feature styles
 * ---------------------
 * Three surfaces:
 *  1. .post_more_popup  — per-post dropdown anchored under the more icon.
 *  2. .post_saved_overlay — small filled icon on a saved post's header.
 *  3. .unsave_confirm_popup — singleton centered "Remove from saved?" card.
 *  4. .saved_index — layout for the standalone /saved page.
 */

/* ---------- More icon trigger + saved overlay -------------------- */
.post_more_trig {
    cursor: pointer;
}

/* The filled overlay shown on the top-right of saved posts. The icon
 * stays white in both themes — that's the spec for the saved indicator,
 * matching how Likes uses its own filled glyph. */
.post_saved_overlay {
    color: #ffffff !important;
    cursor: pointer;
    font-size: 16px;
}
.post_saved_overlay:hover {
    opacity: 0.85;
}

/* Detail-page overlay is always in DOM (stable ids so popup wiring
 * survives instant nav). Toggled visible/hidden via this class instead
 * of being created/removed by saved.js. */
.post_saved_overlay.is-hidden,
.detail_saved_overlay.is-hidden {
    display: none;
}

/* ---------- Per-post "more" dropdown ----------------------------- */
.post_more_popup {
    /* Drops out of normal flow so it doesn't push the post body. The
     * .post_opt parent is position:relative-by-default; we anchor under
     * the trigger to the right. */
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 180px;
    z-index: 50;
    margin-top: 6px;
}

.post_more_cnt {
    background: var(--elevated);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 24px var(--elevated-shadow-color);
    border: 1px solid var(--elevated-highlight);
}

.post_more_opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}
.post_more_opt:hover {
    background: var(--elevated-highlight);
}

.post_more_opt_ico {
    font-size: 16px;
    color: var(--text-secondary);
}
.post_more_opt_lbl {
    flex: 1;
}

/* Anchor the popup to its trigger by making the parent .post_opt the
 * positioning context. The header lays out icons with gap:14 already,
 * so this only adds the relative positioning. */
.post_opt {
    position: relative;
}

/* ---------- "Remove from saved?" confirmation popup -------------- */
.unsave_confirm_popup .fp_cnt_sm {
    max-width: 380px;
}

.unsave_card {
    padding: 32px 28px 24px;
    text-align: center;
    background: var(--elevated);
    border-radius: 16px;
}

.unsave_icon_wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--elevated-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
}
.unsave_icon {
    font-size: 32px;
    color: var(--text-primary);
}

.unsave_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.unsave_message {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.unsave_actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.unsave_btn_cancel {
    background: var(--elevated-highlight);
    color: var(--text-primary);
    min-width: 100px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}
.unsave_btn_cancel:hover {
    background: var(--elevated-surface);
}

.unsave_btn_confirm {
    min-width: 100px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}

/* ---------- Saved page layout ------------------------------------ */
.saved_main_cntr {
    padding: 0 0 40px;
}

.saved_index {
    max-width: 720px;
    margin: 0 auto;
}

.saved_idx_header {
    padding: 24px 4px 16px;
}

.saved_idx_title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.saved_idx_sub {
    margin: 6px 0 0;
    font-size: 14px;
}

.saved_empty_state {
    padding: 60px 20px;
    text-align: center;
}
