
/* v3.7.285: Continuous reading mode indicator + toast styles. */

/* Continuous mode pill in the audio bar. */
.wtpp-continuous-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  background: var(--ov-red-12);
  color: var(--accent, var(--red));
  border: 1px solid var(--ov-red-30);
  font-family: var(--mono, "Inconsolata", monospace);
  user-select: none;
  cursor: default;
  white-space: nowrap;
}
html[data-theme="dark"] .wtpp-continuous-badge {
  background: var(--ov-coral-18);
  color: var(--danger-67);
  border-color: var(--ov-coral-40);
}
.wtpp-continuous-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: wtpp-cont-pulse 1.6s ease-in-out infinite;
}
@keyframes wtpp-cont-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Continuous mode toast (reuses bookmark toast pattern from v3.7.278). */
.wtpp-continuous-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink, var(--ink));
  color: var(--pure-white);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--sans, -apple-system, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 24px var(--ov-black-25);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: min(440px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 10px;
}
.wtpp-continuous-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wtpp-continuous-toast-icon {
  font-size: 18px;
  line-height: 1;
}
html[data-theme="dark"] .wtpp-continuous-toast {
  background: var(--paper-shade, var(--ink-17));
  color: var(--ink, var(--paper-89));
  box-shadow: 0 6px 24px var(--ov-black-50);
}

@media (max-width: 540px) {
  .wtpp-continuous-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  .wtpp-continuous-toast {
    bottom: 80px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* v3.7.504: "Still listening?" presence-check modal for continuous reading.
   Shown at the end of a document when the reader was passive, offering to
   continue the reading path, stop, or play through to the end without further
   prompts. Token-only colors so it themes correctly in light and dark. */
.wtpp-presence-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--ov-black-50);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wtpp-presence-overlay.show { opacity: 1; }
.wtpp-presence-card {
  width: 100%;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border, var(--ov-black-10));
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 40px var(--ov-black-50);
  font-family: var(--sans, -apple-system, system-ui, sans-serif);
  text-align: center;
}
.wtpp-presence-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  color: var(--ink);
}
.wtpp-presence-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft, var(--ink));
}
.wtpp-presence-count {
  font-weight: 700;
  color: var(--accent, var(--red));
  font-family: var(--mono, "Inconsolata", monospace);
}
.wtpp-presence-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.wtpp-presence-btn {
  font-family: var(--sans, -apple-system, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border, var(--ov-black-15));
}
.wtpp-presence-continue {
  background: var(--accent, var(--red));
  color: var(--pure-white);
  border-color: var(--accent, var(--red));
}
.wtpp-presence-stop {
  background: var(--surface-card, var(--paper));
  color: var(--ink);
}
.wtpp-presence-noask {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-soft, var(--ink));
  text-decoration: underline;
  font-family: var(--sans, -apple-system, system-ui, sans-serif);
}
html[data-theme="dark"] .wtpp-presence-card {
  background: var(--paper-shade, var(--ink-17));
  color: var(--paper-89);
  border-color: var(--ov-coral-40);
}

@media (max-width: 540px) {
  .wtpp-presence-card { padding: 20px; }
  .wtpp-presence-actions { flex-direction: column; }
  .wtpp-presence-btn { width: 100%; }
}
