/* ==========================================================================
   Buttons — Touch friendly, Sage-styled
   Extracted from main.css for modularity (v0.8.0)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-pill, 100px);
    cursor: pointer;
    min-height: 44px;
    transition: background-color var(--transition-base, 0.2s ease),
        border-color var(--transition-base, 0.2s ease),
        color var(--transition-base, 0.2s ease),
        box-shadow var(--transition-base, 0.2s ease),
        transform 0.1s ease;
}

/* SVG icons inside buttons inherit the button's text color */
.btn svg,
.btn [aria-hidden="true"]>svg {
    color: inherit;
}

.btn:hover {
    filter: brightness(0.95);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-inverse);
}

.btn-secondary {
    background-color: var(--background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--background-hover);
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-height: 44px;
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse, #fff);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
    border: none;
}

.btn-danger:hover {
    background: var(--danger-dark, #c0392b);
}

.btn-success {
    background: var(--success-dark);
    color: var(--text-inverse);
    border: none;
}

.btn-success:hover {
    background: var(--success);
}

/* Edit/Delete action buttons */
.entry-actions,
.person-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
}

.btn-edit:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-delete:hover {
    background: var(--error-bg);
    color: var(--error);
}

/* Category pill styles moved to components/filters.css (.filter-pill) */
/* --------------------------------------------------------------------------
   Quiet — a real control that is not competing for the click (v0.79.13)

   ⭐ ADDED TO THE SYSTEM RATHER THAN HAND-ROLLED IN A PAGE. The Open Questions
   card needed "Not now" and "Never this subject" to be genuinely available but
   visually subordinate to the doors beside them — and the system had no such
   variant, so the first pass invented two one-off button styles inside
   open-questions.css. That is how the same pattern ends up written five
   different ways and a redesign has to touch five files.

   ⚠️ Quiet is NOT disabled and NOT a link. It keeps the 44px target from
   `.btn` (design_system.md:188, WCAG 2.5.5) and it keeps button semantics —
   only the paint recedes. §D: a control that collects a signal, implies an
   outcome and delivers none is worse than no control, and a control nobody can
   find is that failure with extra steps.
   -------------------------------------------------------------------------- */
.btn-quiet {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
    background: var(--primary-light);
    color: var(--text-color);
}

/* --------------------------------------------------------------------------
   Pickable — a quiet ROW OF CHOICES, which is not the same thing as quiet.

   ⛔ **THESE TWO WERE ACCIDENTALLY IDENTICAL ON SCREEN AND IT SHIPPED.**
   `.btn-quiet-underline` was applied ALONGSIDE `.btn-quiet`, so it inherited
   `--text-secondary` and differed from a dismiss control by an underline
   alone. Measured on staging: the "That is true" reaction and the "Never this
   subject" mute rendered at the SAME 12.8px in the SAME rgb(171,180,163).

   ⚠️ That silently undid the whole point of the layout pass — "leave" was
   supposed to be quieter than "answer the question", and it was not.

   ⭐ THE DISTINCTION IS INTENT, NOT DECORATION:
     `.btn-quiet`            a DISMISSAL. Subordinate. --text-secondary.
     `.btn-quiet-pick`       a CHOICE we are asking her to make. Readable
                             (--text-color) and underlined so it reads as
                             pickable rather than as a label.

   ⛔ Use ONE of them, never both — combining them is what made them the same.
   -------------------------------------------------------------------------- */
.btn-quiet-pick {
    background: transparent;
    color: var(--text-color);
    border: 1px solid transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-color);
}

.btn-quiet-pick:hover,
.btn-quiet-pick:focus-visible {
    background: var(--primary-light);
    text-decoration-color: var(--primary);
}
