/* ================================================================
   PROJECT MEMORY — theme-clean-buttons.css
   All button variants: pm-button-action, pm-button-inline,
   pm-button-delete-large, pm-button-delete-inline, pm-button-text,
   pm-button-create-memory.
   Depends on: theme-clean.css (tokens)
   ================================================================ */


/* ----------------------------------------------------------------
   ACTION BUTTON
   Primary full-width button — used in modal footers and main CTAs.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Primary action button. Full width, brand colour fill.
 *   Used in modal footers (Save, Confirm) and main CTAs.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-action
 * @tags        TODO
 * @called-by   pm-modal-dialog.html, pm-modal-important-date-add.html, pm-modal-merge.html, pm-modal-note-add.html, pm-modal-note-append.html, pm-modal-note-attach.html, pm-modal-note-categories.html, pm-modal-note-edit.html, pm-modal-note-email.html, pm-modal-people-categories.html, pm-modal-person-edit.html, pm-modal-place-categories.html, pm-modal-place-edit.html, pm-modal-place-facts.html, pm-modal-reminder-add.html, pm-modal-reminder-append.html, pm-modal-reminder-edit.html, pm-modal-voice-settings.html, pm-one-sheet.html, pm-panel-calendar.html, pm-panel-important-dates.html, pm-panel-notes.html, pm-panel-people-registry.html, pm-panel-people.html, pm-panel-places-registry.html
 * @depends-on  --pm-radius-full, --pm-brand
 * @updated 2026-04-13
 */
.pm-button-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--pm-radius-full);
    background: var(--pm-brand);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
}

.pm-button-action:active {
    background: var(--pm-brand-dark);
    transform: scale(0.98);
}

.pm-button-action.pm-disabled,
.pm-button-action:disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* ----------------------------------------------------------------
   INLINE BUTTON
   Compact button for use inside cards and lists.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Compact inline button for use inside cards and toolbars.
 *   Border style, adapts colour via modifier classes.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-inline
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-button-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    border: none;
    background: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.pm-button-inline:active {
    opacity: 0.6;
}

/* Colour modifiers — no background or border, emoji carries its own colour */
.pm-button-inline.pm-neutral,
.pm-button-inline.pm-warning,
.pm-button-inline.pm-danger,
.pm-button-inline.pm-success {
    background: none;
    border: none;
}


/* ----------------------------------------------------------------
   TEXT BUTTON
   No border, no background — looks like a link.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Text-only button. No border or background.
 *   Used for secondary actions (Cancel, Skip, Stop Recurrence).
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-text
 * @tags        TODO
 * @called-by   pm-modal-person-edit.html, pm-modal-person-facts.html, pm-modal-place-edit.html, pm-modal-reminder-edit.html
 * @depends-on  --pm-brand
 * @updated 2026-04-13
 */
.pm-button-text {
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pm-brand);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pm-button-text.pm-danger {
    color: var(--pm-danger);
}

.pm-button-text:active {
    opacity: 0.7;
}


/* ----------------------------------------------------------------
   DELETE BUTTONS
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Large destructive delete button. Full width, danger colour.
 *   Used at the bottom of edit forms.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-delete-large
 * @tags        TODO
 * @called-by   pm-modal-note-edit.html
 * @depends-on  --pm-radius-full, --pm-danger
 * @updated 2026-04-13
 */
.pm-button-delete-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--pm-radius-full);
    background: transparent;
    border: 1.5px solid var(--pm-danger);
    color: var(--pm-danger);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.pm-button-delete-large:active {
    background: var(--pm-danger-light);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Small inline delete button. Icon only or icon + label.
 *   Used inside cards and list rows.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-delete-inline
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-button-delete-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    background: none;
    transition: opacity 0.15s;
}

.pm-button-delete-inline:active {
    background: var(--pm-danger-light);
}


/* ----------------------------------------------------------------
   SMALL ACTION BUTTON
   Compact version of pm-button-action — same brand fill, smaller
   padding and font. Used for secondary CTAs within a form or modal
   body (e.g. Test Chime, Test Voice) where a full-width button
   would be too dominant.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Compact brand-filled button. Smaller sibling of pm-button-action.
 *   Use inside modal bodies or forms where full-width is too heavy.
 *   Examples: Test Chime, Test Voice.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-action-small
 * @tags        TODO
 * @called-by   pm-modal-note-categories.html, pm-modal-note-email.html, pm-modal-people-categories.html, pm-modal-place-categories.html, pm-modal-place-facts.html, pm-modal-voice-settings.html, pm-panel-calendar.html, pm-panel-important-dates.html, pm-panel-notes.html, pm-panel-people-registry.html, pm-panel-people.html, pm-panel-places-registry.html
 * @depends-on  --pm-radius-full, --pm-brand
 * @updated 2026-04-13
 */
.pm-button-action-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--pm-radius-full);
    background: var(--pm-brand);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
}

.pm-button-action-small:active {
    background: var(--pm-brand-dark);
    transform: scale(0.97);
}

.pm-button-action-small.pm-disabled,
.pm-button-action-small:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Destructive action button (red). Used for stopping active recordings.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-stop
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  --pm-danger, --pm-radius-medium
 * @updated 2026-04-18
 */
.pm-button-stop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--pm-danger);
    color: white;
    border-radius: var(--pm-radius-medium);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
}

.pm-button-stop:active {
    background: var(--pm-danger-dark);
    transform: scale(0.98);
}

.pm-button-stop:disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* ----------------------------------------------------------------
   CREATE MEMORY BUTTON
   Large prominent capture button on the home panel.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Large prominent capture/create button.
 *   Used as the primary CTA on the home panel.
 * @apps project-memory
 * @type        css-class
 * @name        pm-button-create-memory
 * @tags        TODO
 * @called-by   none found
 * @depends-on  --pm-radius-large, --pm-brand, --pm-shadow-medium
 * @updated 2026-04-13
 */
.pm-button-create-memory {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    border-radius: var(--pm-radius-large);
    background: white;
    color: var(--pm-brand);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    box-shadow: var(--pm-shadow-medium);
    transition: transform 0.15s, box-shadow 0.15s;
}

.pm-button-create-memory:active {
    transform: scale(0.97);
    box-shadow: var(--pm-shadow-small);
}

@media (max-width: 420px) {
    .pm-button-action-small {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}
