/* AuDHD staging additions — audhd-automations
   Loaded after app.css; overrides apply.
   Lives in web-staging only; never deployed to prod. */

/* ─── Draft persistence: banner + pip ──────────────────────────────── */

.audhd-draft-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 0 0 8px;
    border-radius: 10px;
    background: rgba(var(--color-info-rgb, 59, 130, 246), 0.10);
    border: 1px solid rgba(var(--color-info-rgb, 59, 130, 246), 0.35);
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.35;
}

.audhd-draft-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}

.audhd-draft-banner__text strong {
    font-weight: 600;
}

.audhd-draft-banner__actions {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}

.audhd-draft-banner__btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.audhd-draft-banner__btn--primary {
    background: var(--color-info, #3b82f6);
    color: #fff;
    border-color: var(--color-info, #3b82f6);
}

.audhd-draft-banner__btn--primary:hover {
    filter: brightness(1.08);
}

.audhd-draft-banner__btn--ghost {
    color: var(--color-text-muted);
    border-color: var(--color-line);
}

.audhd-draft-banner__btn--ghost:hover {
    color: var(--color-text);
    border-color: var(--color-line-strong);
}

.audhd-draft-pip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--color-success-rgb, 5, 150, 105), 0.12);
    color: var(--color-success-text, #10b981);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.audhd-draft-pip > span[aria-hidden] {
    font-size: 0.65rem;
    line-height: 1;
}

/* ─── Recipe gallery ──────────────────────────────────────────────── */

.audhd-recipe-gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px 0 24px;
}

.audhd-recipe-gallery--inline {
    padding: 24px 0 32px;
}

.audhd-recipe-gallery__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audhd-recipe-gallery__title {
    font-family: 'Sora', 'Manrope', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.audhd-recipe-gallery__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.audhd-recipe-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 768px) {
    .audhd-recipe-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

.audhd-recipe-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 14px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.audhd-recipe-card:hover {
    border-color: var(--color-line-strong);
    transform: translateY(-1px);
}

.audhd-recipe-card__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.audhd-recipe-card__title {
    margin: 0;
    font-family: 'Sora', 'Manrope', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-text);
}

.audhd-recipe-card__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    flex: 1 1 auto;
}

.audhd-recipe-card__cta {
    align-self: flex-start;
    margin-top: 4px;
}

.audhd-recipe-gallery__footer {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.audhd-recipe-gallery__blank-link {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font: inherit;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.12s ease;
}

.audhd-recipe-gallery__blank-link:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* ─── Recipes modal ───────────────────────────────────────────────── */

.audhd-recipes-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.audhd-recipes-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    appearance: none;
    cursor: pointer;
}

.audhd-recipes-modal__panel {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.audhd-recipes-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-line);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.audhd-recipes-modal__close:hover {
    color: var(--color-text);
    border-color: var(--color-line-strong);
}
