/* public/assets/css/pwa.css — install overlay, install page, menu button (banner base styles live in main.css) */

.pwa-banner__install { min-height: 36px; }
.pwa-banner__close { min-width: 36px; min-height: 36px; }

.pwa-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.6);
  animation: pwa-fade .2s ease;
}
.pwa-dialog {
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--s1); color: var(--text);
  border: 1px solid var(--border2); border-radius: 18px 18px 0 0;
  padding: 1.4rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 1rem;
  animation: pwa-slide-up .28s ease;
}
.pwa-dialog:focus { outline: none; }
.pwa-dialog__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 400; margin: 0; }
.pwa-dialog__note { font-size: .82rem; line-height: 1.55; color: var(--text2); margin: 0; }
.pwa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.pwa-step { display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 12px; }
.pwa-step__ill { flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(139,156,244,.1); border-radius: 12px; }
.pwa-step__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pwa-step__n { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pwa-step__text { font-size: .9rem; line-height: 1.4; color: var(--text); }

.pwa-btn {
  min-height: 44px; padding: .6rem 1.2rem; border-radius: 10px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: .88rem; font-weight: 500;
  background: transparent; color: var(--text); border: 1px solid var(--border2);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.pwa-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pwa-btn--ghost { color: var(--text2); }
.pwa-btn:focus-visible, .pwa-banner__install:focus-visible, .pwa-banner__close:focus-visible, .pwa-details > summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
html.pwa-overlay-open { overflow: hidden; }

@media (min-width: 640px) {
  .pwa-overlay { align-items: center; }
  .pwa-dialog { border-radius: 18px; }
}

@keyframes pwa-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── /install page ─────────────────────────────────────────── */
.install-page { max-width: 720px; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
.install-page h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 2rem; margin: 0 0 .6rem; }
.install-page h2 { font-size: 1.05rem; font-weight: 500; margin: 2rem 0 .7rem; }
.install-lead { color: var(--text2); line-height: 1.6; margin: 0 0 1.2rem; }
.install-benefits { margin: 0 0 1.4rem; padding-left: 1.2rem; color: var(--text2); line-height: 1.7; }
.install-cta { margin-bottom: 1rem; }
.pwa-details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: .7rem; background: var(--s1); }
.pwa-details > summary { cursor: pointer; padding: .9rem 1rem; font-weight: 500; min-height: 44px; list-style-position: inside; }
.pwa-details__body { padding: 0 1rem 1rem; }
.pwa-details__body ol { margin: 0 0 .6rem; padding-left: 1.3rem; line-height: 1.7; color: var(--text); }
.pwa-details__body p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.install-share { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── Menu button (partial install_button.php) ──────────────── */
.install-menu-link {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0;
  color: inherit; font: inherit; cursor: pointer; padding: 0;
}
.install-menu-link[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pwa-overlay, .pwa-dialog, .pwa-banner, .pwa-banner--hiding { animation: none !important; }
}

/* /credits page */
.credits-list { list-style: none; margin: 0; padding: 0; }
.credits-item { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; line-height: 1.5; }
.credits-item small, .credits-disclaimer { font-size: .82rem; color: var(--muted); }
.credits-item a { color: var(--text); text-decoration: underline; }
