/* Convite para receber avisos (push) e chamadas para compartilhar. Usa as variáveis de cor do app.css (claro/escuro). */

/* ------------------------------------------------------------ cartão (Início e Alertas) */
.push-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.push-card[hidden] { display: none; }
.push-card__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.push-card__ico svg { width: 22px; height: 22px; }
.push-card__title { font-size: 1.1rem; margin: 0 0 4px; line-height: 1.25; }
.push-card p { margin: 0 0 8px; }
.push-topics { border: 0; margin: 10px 0 12px; padding: 0; display: grid; gap: 8px; }
.push-topics label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.35; cursor: pointer; }
.push-topics input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.push-ok { font-weight: 650; color: var(--good-text); }
.push-error { color: var(--crit-text); font-size: .85rem; }
.push-card .row { margin-top: 6px; }
.push-card__foot { font-size: .78rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 480px) { .push-card { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ convite para receber avisos (assim que a página abre) */
/* Computador: cartão centralizado no topo da tela. Celular: painel na parte de baixo, acima do botão de compartilhar. */
.push-bar { position: fixed; z-index: 75; left: 0; right: 0; top: 14px; margin: 0 auto; width: min(94vw, 620px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 14px 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--ink) 6%, transparent); line-height: 1.35; animation: push-down .35s ease-out; }
.push-bar[hidden] { display: none; }
.push-bar__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.push-bar__ico svg { width: 22px; height: 22px; }
.push-bar__txt { margin: 0; font-size: 1.02rem; font-weight: 750; line-height: 1.25; }
.push-bar__sub { margin: 2px 0 0; font-size: .84rem; color: var(--ink-2); }
.push-bar__body { min-width: 0; }
.push-bar__x { border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.push-bar--done .push-bar__ico { background: var(--good); }
@keyframes push-down { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
@keyframes push-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  /* celular: painel embaixo (acima do botão redondo de compartilhar, no canto inferior esquerdo) */
  .push-bar { top: auto; bottom: 76px; left: 12px; right: 12px; width: auto; margin: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; animation-name: push-up; }
  .push-bar__body { grid-column: 2 / 3; }
  .push-bar__x { grid-column: 3; grid-row: 1; align-self: start; }
  .push-bar .btn { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 48px; font-size: 1rem; }
  .push-bar__ico { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .push-bar { animation: none; } }
/* ------------------------------------------------------------ lembrete discreto (avisos bloqueados) */
/* Pequeno, no canto inferior direito, sem animação: não atrapalha a leitura. */
.push-chip { position: fixed; z-index: 44; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 24px); }
.push-chip[hidden] { display: none; }
.push-chip__pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: .9; }
.push-chip__pill:hover, .push-chip__pill:focus-within { opacity: 1; border-color: var(--border-strong); }
.push-chip__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 4px 7px 12px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .78rem; cursor: pointer; border-radius: 999px; }
.push-chip__btn svg { width: 14px; height: 14px; flex: none; }
.push-chip__btn u { text-underline-offset: 2px; color: var(--ink); font-weight: 650; }
.push-chip__x { border: 0; background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 6px 10px 6px 4px; cursor: pointer; }
.push-help { width: min(92vw, 330px); padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: .86rem; line-height: 1.4; }
.push-help[hidden] { display: none; }
.push-help__title { margin: 0 0 6px; font-weight: 750; }
.push-help__steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }
@media (max-width: 640px) { .push-chip { right: 10px; bottom: 10px; } }
/* ------------------------------------------------------------ chamada para compartilhar (fim das páginas) */
.share-cta { margin: 28px 0 8px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: grid; gap: 12px; }
.share-cta__title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.share-cta__text { margin: 0; color: var(--ink-2); font-size: .9rem; }
.share-cta__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-cta__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 650; font-size: .9rem; text-decoration: none; cursor: pointer; }
.share-cta__btn:hover { background: var(--surface-3); }
.share-cta__btn--wa { background: #25d366; border-color: #25d366; color: #06310f; }
.share-cta__btn--wa:hover { background: #20bd5a; }
.share-cta__btn--tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.share-cta__btn--tg:hover { background: #1b8bc0; }
.share-cta--live { border-color: color-mix(in srgb, var(--crit) 45%, transparent); background: color-mix(in srgb, var(--crit) 5%, var(--surface)); }
