/* Interstitial shown before leaving for the hosted demo (see demo-notice.js).
   Tokens come from style.css, which every page linking this file already loads. */

.demo-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  /* Matches the blurred-surface idiom used throughout index.css. */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: demo-notice-fade 160ms ease-out;
}

/* Stops the page scrolling behind the dialog. */
body.demo-notice-open {
  overflow: hidden;
}

.demo-notice-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card, #18181b);
  border: 1px solid var(--border-color, #27272a);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: demo-notice-rise 200ms ease-out;
}

.demo-notice-title {
  margin: 0 0 12px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary, #fafafa);
}

.demo-notice-body {
  margin: 0 0 24px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary, #a1a1aa);
}

.demo-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.demo-notice-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 11px 20px;
  border-radius: 10px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}

.demo-notice-btn:focus-visible {
  outline: 2px solid var(--accent-purple, #a855f7);
  outline-offset: 2px;
}

.demo-notice-btn-primary {
  border: 1px solid transparent;
  background: var(--accent-gradient, linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%));
  color: #fff;
}

.demo-notice-btn-primary:hover {
  opacity: 0.9;
}

.demo-notice-btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color, #27272a);
  color: var(--text-secondary, #a1a1aa);
}

.demo-notice-btn-secondary:hover {
  border-color: var(--text-muted, #71717a);
  color: var(--text-primary, #fafafa);
}

@keyframes demo-notice-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes demo-notice-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* The dialog is an interruption already; do not also move it for anyone who
   has asked the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .demo-notice-overlay,
  .demo-notice-card {
    animation: none;
  }
  .demo-notice-btn {
    transition: none;
  }
}

@media (max-width: 480px) {
  .demo-notice-card {
    padding: 22px 18px;
  }
  .demo-notice-actions {
    flex-direction: column-reverse;
  }
  .demo-notice-btn {
    width: 100%;
  }
}
