/* ============================================================
   PipeSafe — MongoDB.Local London 2026
   Slide deck styles (extends ds/colors_and_type.css)
   1920×1080 design canvas
   ============================================================ */

@import url("./ds/colors_and_type.css");

/* ---------- Slide-scale tokens ---------- */
:root {
  /* TYPE_SCALE for 1920×1080 */
  --t-mega:     180px;  /* hero stat */
  --t-title:    72px;   /* slide title */
  --t-subtitle: 44px;
  --t-body:     34px;
  --t-small:    28px;
  --t-tiny:     24px;
  --t-code:     30px;
  --t-code-sm:  26px;

  /* SPACING */
  --s-pad-top:    100px;
  --s-pad-bottom: 80px;
  --s-pad-x:      120px;
  --s-title-gap:  52px;
  --s-item-gap:   28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--ps-fg);
  font-family: var(--ps-font-mono);
  overflow: hidden;
}

deck-stage {
  background: var(--ps-bg);
  color: var(--ps-fg);
}

/* ---------- Slide frame ---------- */
.slide {
  background: var(--ps-bg);
  color: var(--ps-fg);
  font-family: var(--ps-font-mono);
  padding: var(--s-pad-top) var(--s-pad-x) var(--s-pad-bottom);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.slide.brand-bg {
  background: var(--ps-brand-forest);
}

.slide.deep-bg {
  background: #00141d;
}

/* Subtle dotted grid (signature brand pattern, 4% opacity) */
.slide.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ps-fg-muted) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.04;
  pointer-events: none;
}

/* ---------- Eyebrow / title ---------- */
.eyebrow {
  font-size: var(--t-tiny);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ps-fg-muted);
  margin: 0 0 24px;
}
.eyebrow .accent { color: var(--ps-accent-bright); }

.title {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ps-fg);
  margin: 0 0 var(--s-title-gap);
  text-wrap: pretty;
}
.title .accent { color: var(--ps-accent-bright); }

.subtitle {
  font-size: var(--t-subtitle);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ps-fg-muted);
  margin: 0 0 var(--s-title-gap);
  text-wrap: pretty;
}

.body {
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ps-fg);
}

.muted { color: var(--ps-fg-muted); }
.comment { color: var(--ps-fg-comment); }
.accent { color: var(--ps-accent-bright); }
.error { color: var(--ps-error); }
.warning { color: var(--ps-warning); }

/* ---------- Footer chrome ---------- */
.slide-footer {
  position: absolute;
  left: var(--s-pad-x);
  right: var(--s-pad-x);
  bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-tiny);
  color: var(--ps-fg-comment);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slide-footer .left { display: flex; align-items: center; gap: 16px; }
.slide-footer .pip {
  width: 18px; height: 18px;
}
.slide-footer .pip svg { width: 100%; height: 100%; display: block; }

/* ---------- Terminal panel (signature element) ---------- */
.terminal {
  background: var(--ps-bg-terminal);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--ps-font-mono);
}
.terminal-header {
  background: var(--ps-bg-header);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ps-border);
}
.terminal-dots {
  display: flex;
  gap: 8px;
}
.terminal-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
}
.terminal-dots .red { background: var(--ps-dot-red); }
.terminal-dots .yel { background: var(--ps-dot-yellow); }
.terminal-dots .grn { background: var(--ps-dot-green); }
.terminal-title {
  font-size: var(--t-tiny);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ps-fg-muted);
}
.terminal-body {
  padding: 32px 36px;
  font-size: var(--t-code);
  line-height: 1.5;
  color: var(--ps-fg);
  white-space: pre;
  flex: 1;
  overflow: hidden;
}
.terminal-body.sm { font-size: var(--t-code-sm); }

/* Inline code formatting helpers (used inside terminals & elsewhere) */
.kw  { color: #569cd6; }   /* keywords: const, type, interface */
.tn  { color: #4ec9b0; }   /* type names */
.pr  { color: #9cdcfe; }   /* property names */
.st  { color: #ce9178; }   /* strings */
.nm  { color: #b5cea8; }   /* numbers */
.fn  { color: #dcdcaa; }   /* fn names */
.cm  { color: var(--ps-fg-comment); font-style: italic; }
.op  { color: #d4d4d4; }
.mq  { color: var(--ps-accent-bright); }   /* $-operators */
.err-underline {
  text-decoration: wavy underline var(--ps-error);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Install box (brand signature) ---------- */
.install-box {
  background: var(--ps-bg-terminal);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  padding: 36px 44px;
  font-family: var(--ps-font-mono);
  font-size: 48px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--ps-shadow-card);
}
.install-box .prompt { color: var(--ps-accent-bright); }
.install-box .cmd    { color: var(--ps-fg); }
.install-box .cursor {
  display: inline-block;
  width: 14px;
  height: 1em;
  background: var(--ps-accent-bright);
  margin-left: 6px;
  animation: blink 0.9s step-end infinite;
  vertical-align: -0.15em;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  font-size: var(--t-small);
  color: var(--ps-fg);
  background: rgba(255,255,255,0.02);
}
.pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ps-accent-bright);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.row { display: flex; gap: 32px; }
.col { display: flex; flex-direction: column; gap: 32px; }
.center-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.center-all {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ---------- Status eyebrows for compile/runtime split ---------- */
.status-eyebrow {
  font-size: var(--t-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ps-fg-muted);
  margin-bottom: 14px;
}
.status-eyebrow.compile { color: var(--ps-accent-bright); }
.status-eyebrow.runtime { color: var(--ps-error); }
