/* ─── B&G Digital Services — Slide Template ────────────────────────────── */
/* Brand: Navy #0d1b2a | Off-White #e0e1dd | Slate Blue #778da9             */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0d1b2a;
  --off-white:   #e0e1dd;
  --slate-blue:  #778da9;
  --steel:       #415a77;
  --light-slate: #a8b8cc;
  --white:       #ffffff;
  --near-black:  #1b1b1b;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--off-white);
  overflow: hidden;
}

/* ─── Presentation Container ────────────────────────────────────────────── */
#presentation {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ─── Slide ─────────────────────────────────────────────────────────────── */
.slide {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6vh 8vw;
  background: var(--navy);
  position: absolute;
  inset: 0;
}

.slide.active {
  display: flex;
}

/* Title slide variant */
.slide--title {
  align-items: center;
  text-align: center;
  padding: 4vh 10vw;
}

.slide--title .slide__content {
  align-items: center;
}

/* Light slide variant */
.slide--light {
  background: var(--white);
  color: var(--near-black);
}

.slide--light .slide__meta,
.slide--light .footer {
  color: var(--steel);
}

.slide--light code,
.slide--light pre {
  background: #f0f2f5;
  color: var(--near-black);
}

/* ─── Slide Content ─────────────────────────────────────────────────────── */
.slide__content {
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  width: 100%;
  max-width: 1200px;
}

/* ─── Typography ────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--off-white);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--off-white);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--slate-blue);
}

p, li {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  line-height: 1.6;
  color: var(--off-white);
}

/* Slide subtitle (used under h1 on title slides) */
.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--slate-blue);
  font-weight: 400;
}

/* Emphasis / accent */
.accent {
  color: var(--slate-blue);
}

strong {
  font-weight: 700;
  color: var(--off-white);
}

em {
  font-style: italic;
  color: var(--light-slate);
}

/* ─── Lists ─────────────────────────────────────────────────────────────── */
ul, ol {
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.8vh;
}

li::marker {
  color: var(--slate-blue);
}

/* ─── Code ──────────────────────────────────────────────────────────────── */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(119, 141, 169, 0.15);
  color: var(--light-slate);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--steel);
  border-left: 4px solid var(--slate-blue);
  padding: 1.5em 2em;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.5;
  color: var(--light-slate);
  width: 100%;
}

pre code {
  background: none;
  padding: 0;
  font-size: 1em;
  color: inherit;
}

/* ─── Divider line ──────────────────────────────────────────────────────── */
.rule {
  width: 80px;
  height: 3px;
  background: var(--slate-blue);
  border: none;
  margin: 0;
}

/* ─── Two-column layout ─────────────────────────────────────────────────── */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
  width: 100%;
}

.columns--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ─── Callout / Highlight box ───────────────────────────────────────────── */
.callout {
  background: rgba(119, 141, 169, 0.1);
  border-left: 4px solid var(--slate-blue);
  padding: 1.5em 2em;
  border-radius: 0 4px 4px 0;
}

.callout--warn {
  border-left-color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
}

.callout p, .callout li {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

/* ─── Slide meta (top label) ────────────────────────────────────────────── */
.slide__meta {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5vw;
  background: rgba(13, 27, 42, 0.9);
  border-top: 1px solid var(--steel);
  z-index: 100;
  backdrop-filter: blur(4px);
}

.footer__logo {
  height: 20px;
  width: auto;
  opacity: 0.75;
}

.footer__copyright {
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}

.footer__counter {
  font-size: 0.72rem;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ─── Progress bar ──────────────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--slate-blue);
  transition: width 0.2s ease;
  z-index: 200;
}

/* ─── Fullscreen adjustments ────────────────────────────────────────────── */
:fullscreen .footer,
:-webkit-full-screen .footer,
:-moz-full-screen .footer {
  background: var(--navy);
}

/* ─── Keyboard hint overlay ─────────────────────────────────────────────── */
#key-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 2rem 3rem;
  display: none;
  z-index: 500;
  text-align: center;
  min-width: 320px;
}

#key-hint h3 {
  font-size: 1.2rem;
  color: var(--off-white);
  margin-bottom: 1rem;
}

#key-hint table {
  width: 100%;
  border-collapse: collapse;
}

#key-hint td {
  padding: 0.4em 1em;
  font-size: 0.9rem;
  color: var(--light-slate);
}

#key-hint td:first-child {
  font-family: var(--font-mono);
  color: var(--slate-blue);
  text-align: right;
  font-weight: 600;
}

#key-hint.visible {
  display: block;
}
