/* ========================================
   PCARD MENU - Options, Delete Actions
   ======================================== */

/* Delete Actions (Legacy support) */
.delete-wrapper {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.delete-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.delete-btn i,
.delete-btn svg {
    width: 18px;
    height: 18px;
}

.delete-confirm {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 2px 2px 2px 10px;
    height: 32px;
}

[dir="rtl"] .delete-confirm {
    padding: 2px 10px 2px 2px;
}

.delete-confirm__yes {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding-inline-end: 4px;
    margin-inline-end: 4px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.delete-confirm__yes:hover {
    color: #ff6b6b;
    background: none;
    text-decoration: none;
}

.delete-confirm__no {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s;
}

.delete-confirm__no:hover {
    color: var(--color-text);
}

.delete-confirm__no i,
.delete-confirm__no svg {
    width: 16px;
    height: 16px;
}

/* Three-Dot Options Menu */
.pcard__options {
    position: relative;
}

.pcard__options-trigger {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.pcard__options-trigger:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.pcard__options-trigger i,
.pcard__options-trigger svg {
    width: 18px;
    height: 18px;
}

.pcard__options-menu {
    position: absolute;
    bottom: 100%;
    inset-inline-end: 0;
    min-width: 220px;
    width: max-content;
    max-width: 280px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    /* Rounded for mobile consistency */
    padding: var(--space-1);
    margin-bottom: var(--space-2);
    box-shadow: var(--shadow);
    z-index: 50;
    text-align: start;
}

.pcard__options-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s;
    text-decoration: none;
    text-align: start;
}

.pcard__options-item:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.pcard__options-item i,
.pcard__options-item svg {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.7;
}

.pcard__options-item--danger {
    color: rgba(239, 68, 68, 0.8);
}

.pcard__options-item--danger:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

.pcard__options-divider {
    height: 1px;
    background: var(--color-surface-hover);
    margin: 4px 0;
}

/* Redesigned Confirm View */
.pcard__options-confirm-view {
    padding: 16px 14px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.pcard__options-confirm-text {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-align: start;
}

.pcard__options-confirm-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pcard__options-btn {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: start;
    transition: color 0.1s;
}

.pcard__options-btn--cancel {
    color: var(--color-text-dim);
}

.pcard__options-btn--cancel:hover {
    color: var(--color-text-muted);
}

.pcard__options-btn--delete {
    color: #ef4444;
}

.pcard__options-btn--delete:hover {
    color: #f87171;
}