/* wp-nudge.css v2 -- "sign in to save favourites" prompts (stage 1 bar, stage 2 card).
   Additive only: uses the site's own colour variables, touches nothing else. */

/* ---------- Stage 1: slim bar ---------- */
.wpn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 520px;
  margin: 8px auto 0;
  padding: 9px 10px 9px 12px;
  /* light warm cream so it stands clear of the dark page */
  background: linear-gradient(180deg, #fffaf0, #ffe8b8);
  border: 2px solid #d9a441;
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.22), 0 10px 28px -8px rgba(0, 0, 0, 0.75);
  color: #2a1a4a;
  font-family: var(--font-body, system-ui, sans-serif);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wpn-bar.is-in { opacity: 1; transform: none; }
.wpn-heart { flex: 0 0 auto; width: 26px; height: 26px; color: #e11d48; }
.wpn-msg {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.wpn-msg { font-weight: 600; }
.wpn-msg b { color: #5b21b6; font-weight: 800; }
/* buttons on the cream bar: deep violet primary, quiet outline for "Not now" */
.wpn-bar .wpn-btn--primary { background: linear-gradient(180deg, #7a47dd, #4c2a9e); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.wpn-bar .wpn-btn--ghost { color: #4a3a70; border-color: rgba(74, 58, 112, 0.45); }
.wpn-bar .wpn-btn--ghost:hover { color: #2a1a4a; background: rgba(74, 58, 112, 0.08); }
.wpn-bar .wpn-btn:focus-visible { outline-color: #4c2a9e; }
.wpn-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }

.wpn-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wpn-btn--primary {
  background: linear-gradient(180deg, #f0c36a, #d9a441);
  color: #2b1d05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.wpn-btn--primary:active { filter: brightness(0.95); }
.wpn-btn--ghost {
  background: transparent;
  color: var(--text-mid, #c9bfe0);
  border-color: rgba(201, 191, 224, 0.35);
  font-weight: 600;
}
.wpn-btn--ghost:hover { color: var(--text-high, #f4efe4); }
.wpn-btn:focus-visible, .wpn-link:focus-visible { outline: 2px solid var(--amber-500, #d9a441); outline-offset: 2px; }

/* fixed to the screen, so nothing in the page moves and it can never be pushed off-screen */
.wpn-bar--fixed {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: none;
  margin: 0;
  z-index: 55;           /* above the page, below the full-screen station picker (60) */
}
.wpn-bar--fixed .wpn-msg { font-size: 14.5px; }
.wpn-bar--fixed .wpn-btn--ghost { padding: 0 12px; }
/* desktop: pinned to the bottom-left, over the radio column (the page itself never scrolls there) */
.wpn-bar--desk {
  left: 28px;
  right: auto;
  bottom: 18px;
  width: min(504px, calc(46vw - 56px));   /* fallback; JS lines it up under the radio column */
}
body.wpn-bar-open .toast { bottom: 84px; }
/* a gentle pulse on the heart while the bar is up, so it is noticed */
.wpn-bar .wpn-heart { animation: wpnBeat 1.6s ease-in-out infinite; }
@keyframes wpnBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- Stage 2: card over a dimmed page ---------- */
.wpn-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;           /* above everything, including the station picker */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 5, 22, 0.74);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wpn-overlay.is-in { opacity: 1; }
.wpn-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  padding: 24px 22px 18px;
  text-align: center;
  background: linear-gradient(180deg, var(--ink-violet-800, #34215c), var(--ink-violet-900, #241740));
  border: 1px solid rgba(217, 164, 65, 0.7);
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
  color: var(--text-high, #f4efe4);
  font-family: var(--font-body, system-ui, sans-serif);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s ease;
}
.wpn-overlay.is-in .wpn-card { transform: none; }
.wpn-card .wpn-heart { width: 40px; height: 40px; margin: 0 auto 6px; display: block; }
.wpn-title {
  margin: 0 0 8px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
}
.wpn-sub { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--text-mid, #c9bfe0); }
.wpn-sub b { color: var(--amber-500, #d9a441); }
.wpn-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
}
.wpn-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; }
.wpn-list li::before { content: "\2713"; flex: 0 0 auto; color: #2ecc71; font-weight: 800; }
.wpn-card .wpn-btn--primary { display: block; width: 100%; min-height: 54px; font-size: 17px; }
.wpn-card-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.wpn-link {
  background: none;
  border: 0;
  padding: 10px 6px;
  min-height: 44px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-low, #9a8fc0);
  text-decoration: underline;
  cursor: pointer;
}
.wpn-link:hover { color: var(--text-mid, #c9bfe0); }
.wpn-card .wpn-btn--ghost { min-height: 46px; }

/* hint shown only if the login icon cannot be found to open for the visitor */
.wpn-hint {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink-violet-800, #34215c);
  border: 1px solid rgba(217, 164, 65, 0.7);
  color: var(--text-high, #f4efe4);
  font-size: 15px;
  text-align: center;
}
