/* ==========================================================================
   Account deletion.

   Requires css/design-tokens.css and css/content.css.

   Chili is the app's destructive colour and appears nowhere else on the site.
   The point of using it here — and only here — is that nothing else on a
   BeetBeans page is red, so this reads as different in kind, not just in
   emphasis.
   ========================================================================== */

.danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Deliberately not styled as the primary action. Deleting an account should
   never be the easiest thing to hit on the page. */
.btn-danger-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--r-md);
    background: var(--chili);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-danger-app:hover:not(:disabled) {
    background: #93301F;
    box-shadow: 0 6px 20px rgba(178, 59, 44, 0.25);
}

.btn-danger-app:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.btn-danger-app:disabled {
    opacity: 0.6;
    cursor: default;
}

/* --------------------------------------------------------------------------
   The warning panel
   -------------------------------------------------------------------------- */

.danger-panel {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid rgba(178, 59, 44, 0.35);
    border-left: 4px solid var(--chili);
    border-radius: var(--r-lg);
    background: #FCF3F1;
}

.danger-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.danger-panel__icon {
    flex-shrink: 0;
    color: var(--chili);
    line-height: 0;
}

/* content.css draws a turmeric rule above every h2 in .content-body; this
   heading sits inside its own panel and doesn't want one. */
.danger-panel__title::before {
    content: none !important;
}

.danger-panel__title {
    margin: 0;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.2rem;
    color: #7A2618;
}

.danger-panel p {
    margin: 0 0 12px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #7A2618;
}

.danger-panel strong {
    color: #63190E;
}

.danger-list {
    margin: 0 0 14px;
    padding-left: 1.2rem;
}

.danger-list li {
    margin-bottom: 6px;
    font-size: 0.96rem;
    line-height: 1.55;
    color: #7A2618;
}

.danger-final {
    padding-top: 12px;
    border-top: 1px solid rgba(178, 59, 44, 0.25);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Working / done / error
   -------------------------------------------------------------------------- */

.danger-state {
    margin: 32px 0;
    padding: 32px 24px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.danger-state__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
}

.danger-state__body {
    margin: 0 0 20px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--cement-grey);
}

.danger-state__body:last-child {
    margin-bottom: 0;
}

/* content.css defines .btn-app for the outline variant used here. */
.content-page .btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--r-md);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.content-page .btn-app--outline {
    background: transparent;
    color: var(--cardamom-strong);
    box-shadow: inset 0 0 0 1.4px rgba(11, 68, 51, 0.45);
}

.content-page .btn-app--outline:hover {
    background: rgba(11, 68, 51, 0.08);
    color: var(--cardamom-strong);
    text-decoration: none;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .danger-panel {
        padding: 18px;
    }

    .danger-actions .btn-danger-app,
    .danger-actions .btn-app {
        width: 100%;
    }
}
