/* ============================================================
   COMPONENTS-OVERLAYS.CSS — Thirsk Squash Club
   Sitewide popup chrome: post-registration welcome modal + push
   notification banners. Anything fixed-position that floats over
   the page lives here.
   Loaded after components.css; depends on tokens in base.css.
   ============================================================ */

/* ── WELCOME MODAL (post-registration) ─────────────────────── */
.welcome-box {
  max-width: 460px;
  text-align: left;
  padding-top: 1.6rem;
}
.welcome-kicker {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--bm);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.welcome-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  text-align: center;
  color: var(--bd);
  margin-bottom: .4rem;
  line-height: 1.15;
}
.welcome-title span { color: var(--bm); }
.welcome-sub {
  text-align: center;
  font-size: 13px;
  color: var(--mu);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.welcome-sub strong { color: var(--bd); }
.welcome-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.welcome-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--mu);
  transition: all 0.2s;
}
.welcome-steps li.done {
  background: var(--gl);
  border-color: rgba(15, 122, 60, 0.25);
  color: var(--gn);
}
.welcome-steps li.next {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.4);
  color: var(--bd);
  box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.45);
  animation: welcome-step-pulse 2.2s ease-out infinite;
}
@keyframes welcome-step-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.45); }
  60%  { box-shadow: 0 0 0 8px rgba(0, 208, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0); }
}
.welcome-steps li > div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.welcome-steps strong { font-size: 13px; font-weight: 600; color: inherit; }
.welcome-steps span:last-child { font-size: 11px; color: var(--mu); }
.welcome-steps li.done span:last-child { color: rgba(15, 122, 60, 0.75); }
.welcome-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--br);
  font-size: 12px;
  font-weight: 700;
  color: var(--mu);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.welcome-steps li.done .welcome-step-num { background: var(--gn); color: #fff; border-color: var(--gn); }
.welcome-steps li.next .welcome-step-num { background: var(--bm); color: #05080a; border-color: var(--bm); }
.welcome-cta { font-weight: 600; letter-spacing: 0.5px; }
.welcome-skip {
  text-align: center;
  margin: .65rem 0 0;
  font-size: 11px;
}
.welcome-skip span {
  color: var(--mu);
  cursor: pointer;
  text-decoration: underline;
}

/* ── PUSH BANNERS (in-app + iOS home-screen prompts) ───────
   Deliberately dark on a light site — notification UI. */
.push-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a2236;
  border: 1px solid var(--bm);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  max-width: 400px;
  width: calc(100% - 32px);
  pointer-events: auto;           /* defensive — Safari sometimes inherits none from backdrop-filter ancestors */
}
.push-banner * { pointer-events: auto; }
.push-banner button {
  position: relative;
  z-index: 1;
}
.push-banner-inline  { display: flex; align-items: center; gap: 12px; }
.push-banner-stacked { display: block; }
.push-banner-body    { flex: 1; }
.push-banner-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.push-banner-stacked .push-banner-title { margin-bottom: 6px; }
.push-banner-sub {
  color: #8899aa;
  font-size: 12px;
}
.push-banner-sub-ios {
  line-height: 1.5;
  margin-bottom: 12px;
}
.push-banner-sub-ios strong { color: #fff; font-weight: 600; }
.push-ios-icon {
  font-size: 16px;
  vertical-align: middle;
}
.push-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.push-banner-actions-end { justify-content: flex-end; }
.push-banner-allow {
  background: var(--bm);
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
}
.push-banner-later {
  background: none;
  border: 1px solid #334;
  color: #8899aa;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
}
