/* Workspace gate overlay
   Shown on memory.html / connectors.html when the signed-in user has no
   provisioned per-user workspace container yet. Directs them to /workspace.
   Used by both memory.js (wraps init) and the connectors page script.
*/

.bn-workspace-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bn-bg-glass-2, rgba(248, 246, 242, 0.86));
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  animation: bn-ws-gate-fade 220ms ease-out;
}

.bn-workspace-gate[hidden] { display: none; }

@keyframes bn-ws-gate-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bn-workspace-gate__card {
  width: min(480px, 100%);
  background: var(--bn-bg-surface-1, #F1ECE2);
  border: 1px solid var(--bn-border, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  text-align: center;
  animation: bn-ws-gate-rise 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bn-ws-gate-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bn-workspace-gate__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bn-accent-soft, rgba(233, 75, 44, 0.10));
  color: var(--bn-accent, #E94B2C);
}

.bn-workspace-gate__icon i,
.bn-workspace-gate__icon svg {
  width: 28px;
  height: 28px;
}

.bn-workspace-gate__title {
  margin: 0 0 8px;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bn-ink-primary, #1A1815);
}

.bn-workspace-gate__body {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bn-ink-secondary, #5A5550);
}

.bn-workspace-gate__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.bn-workspace-gate__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.bn-workspace-gate__btn--primary {
  background: var(--bn-accent, #E94B2C);
  color: #fff;
  box-shadow: 0 4px 14px var(--bn-accent-glow, rgba(233, 75, 44, 0.2));
}
.bn-workspace-gate__btn--primary:hover {
  background: var(--bn-accent-hover, #D43E22);
  transform: translateY(-1px);
}

.bn-workspace-gate__btn--ghost {
  background: transparent;
  color: var(--bn-ink-secondary, #5A5550);
  border-color: var(--bn-border, rgba(0, 0, 0, 0.12));
}
.bn-workspace-gate__btn--ghost:hover {
  background: var(--bn-bg-surface-2, #E8E1D2);
  color: var(--bn-ink-primary, #1A1815);
}

.bn-workspace-gate__hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--bn-ink-tertiary, #8A857F);
}

/* Dark theme override (memory.html uses bn-ambient + memory-dark.css) */
[data-theme="dark"] .bn-workspace-gate,
.bn-ambient .bn-workspace-gate {
  background: rgba(6, 7, 10, 0.78);
}
[data-theme="dark"] .bn-workspace-gate__card,
.bn-ambient .bn-workspace-gate__card {
  background: #11141B;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .bn-workspace-gate__icon,
.bn-ambient .bn-workspace-gate__icon {
  background: rgba(0, 255, 136, 0.10);
  color: #00FF88;
}
[data-theme="dark"] .bn-workspace-gate__title,
.bn-ambient .bn-workspace-gate__title {
  color: #F5F7FB;
}
[data-theme="dark"] .bn-workspace-gate__body,
.bn-ambient .bn-workspace-gate__body {
  color: #97A3B6;
}
[data-theme="dark"] .bn-workspace-gate__btn--primary,
.bn-ambient .bn-workspace-gate__btn--primary {
  background: #00FF88;
  color: #06070A;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.25);
}
[data-theme="dark"] .bn-workspace-gate__btn--primary:hover,
.bn-ambient .bn-workspace-gate__btn--primary:hover {
  background: #00E67A;
}
[data-theme="dark"] .bn-workspace-gate__btn--ghost,
.bn-ambient .bn-workspace-gate__btn--ghost {
  color: #97A3B6;
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .bn-workspace-gate__btn--ghost:hover,
.bn-ambient .bn-workspace-gate__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #F5F7FB;
}
[data-theme="dark"] .bn-workspace-gate__hint,
.bn-ambient .bn-workspace-gate__hint {
  color: #6B7280;
}
