/* ============================================================
   outflow · AutoScripture overlay styling
   Lower-third verse card, themed to the Axon design system.
   Pairs with assets/js/autoscripture-overlay.js. Loaded in
   index.html after axon-override.css so it shares the tokens.
   ============================================================ */

#outflow-scripture-overlay {
  position: fixed;
  left: 50%;
  bottom: 6.5rem; /* clear of the meeting control bar */
  transform: translateX(-50%) translateY(12px);
  z-index: 2147483000; /* above app chrome, below nothing important */
  width: min(680px, calc(100vw - 2rem));
  pointer-events: none; /* card re-enables for its own controls */
  opacity: 0;
  transition: opacity 0.45s var(--axon-ease, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.45s var(--axon-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

#outflow-scripture-overlay.ofs-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#outflow-scripture-overlay .ofs-card {
  pointer-events: auto;
  background: color-mix(in srgb, var(--axon-surface, #0f0f12) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--axon-border-strong, #2a2a33);
  border-radius: 16px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(94, 106, 210, 0.08),
    0 0 40px var(--axon-blue-glow, rgba(94, 106, 210, 0.15));
  padding: 1rem 1.25rem 0.85rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--axon-text-1, #f7f8f8);
}

#outflow-scripture-overlay .ofs-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

#outflow-scripture-overlay .ofs-cite {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--axon-text-1, #f7f8f8);
}

#outflow-scripture-overlay .ofs-version {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  color: var(--axon-blue-hover, #7b85e8);
  background: rgba(94, 106, 210, 0.12);
  border: 1px solid rgba(94, 106, 210, 0.25);
}

#outflow-scripture-overlay .ofs-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--axon-text-3, #62666d);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.15s ease;
}
#outflow-scripture-overlay .ofs-close:hover {
  color: var(--axon-text-1, #f7f8f8);
}

#outflow-scripture-overlay .ofs-body {
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--axon-text-1, #f7f8f8);
  max-height: 9.5rem;
  overflow-y: auto;
}

#outflow-scripture-overlay .ofs-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--axon-border, #1f1f26);
}

#outflow-scripture-overlay .ofs-foot button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--axon-text-2, #8a8f98);
  background: var(--axon-surface-elevated, #15151a);
  border: 1px solid var(--axon-border, #1f1f26);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#outflow-scripture-overlay .ofs-foot button:hover:not(:disabled) {
  background: var(--axon-surface-hover, #1c1c22);
  color: var(--axon-text-1, #f7f8f8);
  border-color: var(--axon-border-strong, #2a2a33);
}

#outflow-scripture-overlay .ofs-foot button:disabled {
  opacity: 0.4;
  cursor: default;
}

#outflow-scripture-overlay .ofs-pause {
  margin: 0 auto; /* center pause between prev/next */
}

#outflow-scripture-overlay .ofs-pause.ofs-paused {
  color: var(--axon-blue-hover, #7b85e8);
  border-color: rgba(94, 106, 210, 0.4);
  background: rgba(94, 106, 210, 0.12);
}

/* Light-theme fallback if the app isn't in dark mode. */
@media (prefers-color-scheme: light) {
  #outflow-scripture-overlay .ofs-card {
    background: rgba(255, 255, 255, 0.92);
    color: #14141a;
    border-color: rgba(0, 0, 0, 0.12);
  }
  #outflow-scripture-overlay .ofs-cite,
  #outflow-scripture-overlay .ofs-body {
    color: #14141a;
  }
}
