/* ── PyRevit Presentation — Dark Theme Overrides ── */

:root {
  --r-main-font-size: 30px; /* 75% of reveal.js black theme default (40px) */
  --r-background-color: #141414;
  --r-main-color: #c9d1d9;
  --r-heading-color: #e6edf3;
  --r-link-color: #58a6ff;
  --r-link-color-hover: #79c0ff;
  --r-selection-background-color: #1f6feb;
  --r-main-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --r-heading-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --r-code-font: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --r-heading-text-transform: none;
  --r-heading-font-weight: 600;
  --accent: #58a6ff;
  --accent-green: #3fb950;
  --accent-orange: #d29922;
  --accent-red: #f85149;
  --surface: #1c1c1c;
  --border: #30363d;
}

.reveal-viewport {
  background: var(--r-background-color);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 0 20px;
}

.reveal .slides section.is-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── Headings ── */
.reveal h1 {
  font-size: 2.2em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--r-heading-color);
}

.reveal h2 {
  font-size: 1.7em;
  letter-spacing: -0.01em;
  color: var(--r-heading-color);
  margin-top: 0;
  margin-bottom: 0.35em;
}

.reveal h3 {
  font-size: 1.2em;
  color: var(--r-heading-color);
}

.reveal p {
  line-height: 1.65;
  color: var(--r-main-color);
}

/* ── Section header slides ── */
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.section-header .section-num {
  font-size: 0.75em;
  font-family: var(--r-code-font);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.4em;
  margin: 0;
}

/* ── Tag / badge ── */
.tag {
  display: inline-block;
  font-family: var(--r-code-font);
  font-size: 0.55em;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
  position: relative;
  top: -2px;
}

.tag-blue   { background: rgba(88,166,255,0.15); color: #58a6ff; border: 1px solid rgba(88,166,255,0.3); }
.tag-green  { background: rgba(63,185,80,0.15);  color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }
.tag-orange { background: rgba(210,153,34,0.15); color: #d29922; border: 1px solid rgba(210,153,34,0.3); }

/* ── Two-column grid ── */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  align-items: start;
  margin-top: 0.6em;
}

.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2em;
  align-items: start;
  margin-top: 0.6em;
}

/* ── Callout box ── */
.callout {
  border-left: 3px solid var(--accent);
  padding: 0.55em 0.9em;
  background: rgba(88,166,255,0.06);
  border-radius: 0 6px 6px 0;
  margin: 0.6em 0;
  font-size: 0.88em;
  line-height: 1.6;
}

.callout-green {
  border-left-color: var(--accent-green);
  background: rgba(63,185,80,0.06);
}

.callout-orange {
  border-left-color: var(--accent-orange);
  background: rgba(210,153,34,0.06);
}

/* ── Code blocks ── */
.reveal pre {
  box-shadow: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1117;
  margin: 0.8em 0;
  width: 100%;
  max-height: 56vh;
  overflow-y: auto;
}

.reveal pre code {
  font-family: var(--r-code-font);
  font-size: 0.70em;
  line-height: 1.45;
  padding: 0.85em 1.1em;
  border-radius: 8px;
  background: transparent;
}

.reveal code {
  font-family: var(--r-code-font);
  font-size: 0.85em;
  background: rgba(110,118,129,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e6edf3;
}

.reveal pre code.hljs {
  background: #0d1117;
}

/* ── Lists ── */
.reveal ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0;
}

.reveal ul li {
  padding: 0.2em 0 0.2em 1.4em;
  position: relative;
  color: var(--r-main-color);
  font-size: 0.92em;
  line-height: 1.55;
}

.reveal ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.reveal ol li {
  color: var(--r-main-color);
  font-size: 0.92em;
  line-height: 1.55;
  margin: 0.15em 0;
}

/* ── Table ── */
.reveal table {
  font-size: 0.8em;
  border-collapse: collapse;
  width: 100%;
  margin: 0.8em 0;
}

.reveal table th {
  background: var(--surface);
  color: var(--r-heading-color);
  font-weight: 600;
  padding: 0.4em 0.7em;
  border-bottom: 1px solid var(--accent);
  text-align: left;
}

.reveal table td {
  padding: 0.35em 0.7em;
  border-bottom: 1px solid var(--border);
  color: var(--r-main-color);
}

.reveal table tr:last-child td {
  border-bottom: none;
}

/* ── Card / surface box ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1em 1.2em;
  margin: 0.4em 0;
}

.card h4 {
  margin: 0 0 0.4em;
  font-size: 0.9em;
  color: var(--accent);
  font-weight: 600;
}

.card p, .card li {
  font-size: 0.82em;
  margin: 0.2em 0;
}

/* ── Muted / small text ── */
.muted {
  color: #8b949e;
  font-size: 0.8em;
}

.accent { color: var(--accent); }
.green  { color: var(--accent-green); }
.orange { color: var(--accent-orange); }

/* ── Title slide ── */
.title-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.title-slide .eyebrow {
  font-family: var(--r-code-font);
  font-size: 0.7em;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.title-slide h1 {
  font-size: 2.5em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}

.title-slide .subtitle {
  font-size: 1em;
  color: #8b949e;
  margin: 0;
}

/* ── Slide number ── */
.reveal .slide-number {
  background: transparent;
  color: #484f58;
  font-family: var(--r-code-font);
  font-size: 0.7em;
}

/* ── Progress bar ── */
.reveal .progress {
  height: 2px;
  color: var(--accent);
}

/* ── Controls ── */
.reveal .controls {
  color: var(--accent);
}

/* ── Fragments ── */
.reveal .fragment.highlight-blue.visible {
  color: var(--accent);
}

/* ── Keyboard shortcut hint ── */
.kbd {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: var(--r-code-font);
  font-size: 0.75em;
  color: #8b949e;
}

/* ── Diagram / architecture box ── */
.arch-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.6em 1em;
  text-align: center;
  font-family: var(--r-code-font);
  font-size: 0.8em;
  color: var(--r-main-color);
}

.arch-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.2em;
  line-height: 1;
  padding: 0.1em 0;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  max-width: 420px;
  margin: 0.5em auto 0;
}
