/*
 * _base.css — Shared slide system foundation
 *
 * All sizes in px — designed for the 1920x1080 reveal.js canvas.
 * Reveal.js scales the entire canvas, so px values work at any screen size.
 * Brand themes override CSS variables; archetypes consume them.
 */

/* ============================
   VARIABLE DEFAULTS
   ============================ */

:root {
  --brand-accent: #78b4ff;
  --brand-accent-warm: #ffb450;
  --brand-accent-green: #34d399;
  --brand-accent-purple: #c084fc;
  --brand-accent-muted: rgba(255,255,255,0.3);
  --slide-accent: var(--brand-accent);

  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --text-faint: rgba(255,255,255,0.2);

  --card-border: rgba(255,255,255,0.2);
  --card-radius: 12px;
  --divider: rgba(255,255,255,0.08);
  --slide-bg: #0d0d0d;
}


/* ============================
   REVEAL.JS INTEGRATION
   ============================ */

.reveal .slides > section {
  --slide-accent: var(--brand-accent);
  padding: 0 !important;
  width: 100%;
  height: 100% !important;  /* Force full height even with center: true */
}

.reveal .slides > section[data-accent="warm"]   { --slide-accent: var(--brand-accent-warm); }
.reveal .slides > section[data-accent="green"]  { --slide-accent: var(--brand-accent-green); }
.reveal .slides > section[data-accent="purple"] { --slide-accent: var(--brand-accent-purple); }
.reveal .slides > section[data-accent="muted"]  { --slide-accent: var(--brand-accent-muted); }

/* Reset reveal.js defaults that fight our layouts */
.reveal .slides section p { margin: 0; }
.reveal .slides section ul { display: block; margin: 0; }
.reveal .slides section blockquote { display: block; width: auto; margin: 0; padding: 0; background: none; box-shadow: none; }
.reveal .slides section table { margin: 0; }
.reveal .slides section img { margin: 0; }


/* ============================
   LAYOUT WRAPPERS
   Inner divs that fill the section via absolute positioning
   ============================ */

/* All layout wrappers fill their parent section */
.centered-layout,
.content-layout,
.split-layout,
.bleed-layout {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

/* Ensure all children use border-box too */
.centered-layout *,
.content-layout *,
.split-layout *,
.bleed-layout * {
  box-sizing: border-box;
}

.centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 180px;
}

.content-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 160px 80px 180px;
  text-align: left;
}

/* Force left-align headings in content and split layouts (reveal.js defaults to center) */
.content-layout h1, .content-layout h2, .content-layout h3,
.split-layout h1, .split-layout h2, .split-layout h3 {
  text-align: left !important;
}

.split-layout {
  display: flex;
}

.split-layout.flipped {
  flex-direction: row-reverse;
}

.split-layout > .content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px 80px 140px;
  text-align: left;
}

.split-layout.flipped > .content-col {
  padding: 80px 140px 80px 20px;
}

.split-layout > .media-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 80px 20px;
}

.bleed-layout {
  overflow: hidden;
}

.bleed-layout > .bleed-media {
  position: absolute;
  inset: 0;
}

.bleed-layout > .bleed-media img,
.reveal .slides .bleed-layout > .bleed-media img,
.bleed-layout > .bleed-media video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  margin: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.bleed-layout > .bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 40%, transparent 60%);
}

.bleed-layout > .bleed-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 100px;
}


/* ============================
   TYPOGRAPHY
   ============================ */

.eyebrow {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--r-heading-font);
  color: var(--slide-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  line-height: 1;
}

.subtext {
  font-size: 35px !important;
  font-weight: 400 !important;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 900px;
  text-transform: none !important;
}

.detail {
  font-size: 25px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 12px;
  text-transform: none;
}


/* ============================
   STAT ELEMENTS
   ============================ */

.hero-stat {
  font-size: 225px;
  font-weight: 900;
  font-family: var(--r-heading-font);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-card {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
}

.stat-card .stat-value {
  font-size: 60px;
  font-weight: 800;
  font-family: var(--r-heading-font);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-card .stat-label {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-card .stat-delta {
  font-size: 19px;
  font-weight: 500;
  color: var(--slide-accent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}


/* ============================
   MEDIA CONTAINER
   ============================ */

.media-container {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.media-container img,
.media-container video,
.media-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


/* ============================
   SCREENSHOT FRAME
   ============================ */

.screenshot-frame {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  width: 100%;
  height: 100%;
}

.screenshot-titlebar {
  background: #2a2a2a;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-shrink: 0;
}

.screenshot-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; }
.screenshot-titlebar .dot.red    { background: #ff5f57; }
.screenshot-titlebar .dot.yellow { background: #febc2e; }
.screenshot-titlebar .dot.green  { background: #28c840; }
.screenshot-titlebar .title {
  margin-left: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.screenshot-body {
  flex: 1;
  overflow: hidden;
  background: #111;
  min-width: 0;
  min-height: 0;
}

.reveal .slides .screenshot-body img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: top left;
  margin: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* Ensure screenshot-frame fills the media-col completely */
.reveal .slides .media-col.screenshot-col {
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.reveal .slides .media-col.screenshot-col > .screenshot-frame {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
}


/* ============================
   TIMELINE
   ============================ */

.timeline-track {
  position: relative;
  width: 100%;
  margin-top: 24px;
  padding: 40px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: -180px;  /* Bleed past content-layout padding */
  right: -160px;
  /* Align with center of node markers: 40px padding-top + 40px (half of 80px marker) */
  top: 80px;
  height: 3px;
  background: var(--card-border);
  border-radius: 2px;
}

.timeline-nodes {
  display: flex;
  position: relative;
  z-index: 1;
}

.timeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.timeline-node .node-marker {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--slide-bg);
  border: 3px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-node.active .node-marker {
  border-color: var(--slide-accent);
  color: var(--slide-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--slide-accent) 15%, transparent);
}

.timeline-node .node-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-node .node-desc {
  font-size: 21px;
  color: var(--text-muted);
  max-width: 90%;
  line-height: 1.4;
}


/* ============================
   TABLE
   ============================ */

/* Table wrapped in a card container */
.slide-table-wrap {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-top: 12px;
}

.slide-table {
  width: 100%;
  border-collapse: collapse;
}

.reveal .slides .slide-table th {
  text-align: left;
  padding: 24px 28px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid var(--card-border);
}

.reveal .slides .slide-table td {
  padding: 24px 28px;
  color: var(--text-secondary);
  font-size: 28px;
  border-bottom: 1px solid var(--card-border);
}

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

/* Compact table variant for dense data */
.slide-table-wrap.compact .slide-table th {
  padding: 14px 16px;
  font-size: 16px;
}

.slide-table-wrap.compact .slide-table td {
  padding: 12px 16px;
  font-size: 20px;
}


/* ============================
   AGENDA
   ============================ */

.agenda-item {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.agenda-item .agenda-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slide-accent) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 600;
  color: var(--slide-accent);
  flex-shrink: 0;
}

.agenda-item .agenda-text {
  font-size: 35px;
  color: var(--text-secondary);
}


/* ============================
   BULLET LIST
   ============================ */

.slide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  font-size: 32px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.slide-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slide-accent);
  flex-shrink: 0;
  margin-top: 14px;
}


/* ============================
   CTA / ACTION ITEMS
   ============================ */

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.action-item .checkbox {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  border: 2px solid color-mix(in srgb, var(--slide-accent) 40%, transparent);
  flex-shrink: 0;
  margin-top: 4px;
}

.action-item .action-text {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
}

.action-item .action-meta {
  font-size: 22px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================
   QUOTE
   ============================ */

.quote-mark {
  font-size: 150px;
  color: color-mix(in srgb, var(--slide-accent) 25%, transparent);
  font-weight: 900;
  line-height: 0.6;
  margin-bottom: 8px;
}

.quote-text {
  font-size: 45px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.5;
  font-style: italic;
  text-transform: none;
  max-width: 1000px;
  margin: 0;
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.quote-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 600;
  color: var(--text-muted);
  overflow: hidden;
}

.quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-name {
  font-size: 25px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quote-role {
  font-size: 20px;
  color: var(--text-muted);
}


/* ============================
   COMPARISON
   ============================ */

.comparison-cols {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex: 1;
}

.comparison-col {
  flex: 1;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255,255,255,0.06);
}

.comparison-col .col-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--slide-accent);
  margin-bottom: 8px;
}

.comparison-col .col-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  color: var(--text-secondary);
}

.comparison-col .col-item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slide-accent);
  flex-shrink: 0;
}


/* ============================
   CHECK LIST (done/next status bullets)
   ============================ */

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 28px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-list li::before {
  content: '\2022';
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
  margin-top: 2px;
}

.check-list li.done::before {
  content: '\2713';
  color: var(--brand-accent-green);
  font-weight: 700;
}

.check-list li.next::before {
  content: '\2192';
  color: var(--text-muted);
}

.check-list li.cusp::before {
  content: '\2022';
  color: var(--brand-accent-warm);
}

.check-list li.cusp-blue::before {
  content: '\2022';
  color: var(--brand-accent);
}

.check-list li.sub {
  font-size: 22px;
  color: var(--text-muted);
  padding-left: 40px;
  margin-bottom: 2px;
  line-height: 1.3;
}

/* Tighten gap before sub-items: reduce margin on the parent item */
.check-list li:has(+ li.sub) {
  margin-bottom: 4px;
}

.check-list li.sub::before {
  content: '\00B7';
  font-size: 28px;
  color: var(--text-muted);
}


/* ============================
   TIER / SECTION LABELS
   ============================ */

.tier-label {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 6px;
  line-height: 1;
}

.tier-label:first-child {
  margin-top: 0;
}

.tier-label.tier-green  { color: var(--brand-accent-green); }
.tier-label.tier-amber  { color: var(--brand-accent-warm); }
.tier-label.tier-blue   { color: var(--brand-accent); }
.tier-label.tier-muted  { color: var(--text-muted); }


/* ============================
   HIGHLIGHT BOX (green callout)
   ============================ */

.highlight-box {
  background: color-mix(in srgb, var(--brand-accent-green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-accent-green) 20%, transparent);
  border-radius: var(--card-radius);
  padding: 20px 24px;
  margin-top: 16px;
}

.highlight-box .hb-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-accent-green);
  margin-bottom: 10px;
}

.highlight-box .hb-detail {
  font-size: 20px;
  color: var(--brand-accent-green);
  line-height: 1.7;
}

.highlight-box .hb-link {
  font-size: 20px;
  color: var(--brand-accent-green);
  margin-top: 6px;
  opacity: 0.8;
}

.highlight-box .check-list {
  margin-top: 8px;
}

.highlight-box .check-list li {
  font-size: 22px;
  color: var(--brand-accent-green);
}


/* ============================
   PILL BADGES
   ============================ */

.pill-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  font-size: 20px;
  font-weight: 500;
  border-radius: 100px;
  padding: 8px 20px;
  display: inline-block;
  line-height: 1.2;
}

.pill-accent {
  background: color-mix(in srgb, var(--slide-accent) 15%, transparent);
  color: var(--slide-accent);
}

.pill-green {
  background: color-mix(in srgb, var(--brand-accent-green) 15%, transparent);
  color: var(--brand-accent-green);
}

.pill-warm {
  background: color-mix(in srgb, var(--brand-accent-warm) 15%, transparent);
  color: var(--brand-accent-warm);
}


/* ============================
   STATUS INDICATORS + ROWS
   ============================ */

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.live       { background: var(--brand-accent-green); }
.status-dot.pending    { background: var(--brand-accent-warm); }
.status-dot.queued     { background: var(--text-muted); }
.status-dot.incomplete { background: #E24B4A; }

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  justify-content: center;
  height: 100%;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.status-row .row-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
  text-align: left;
}

.status-row .row-detail {
  font-size: 21px;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ============================
   STAT ROW (horizontal stat cards)
   ============================ */

.stat-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.stat-row .stat-card {
  flex: 1;
}


/* ============================
   MINI TABLE
   ============================ */

.mini-table {
  width: 100%;
  margin-top: 28px;
}

.mini-table-header {
  display: flex;
  font-size: 18px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.mini-table-header span { flex: 1; }
.mini-table-header span:last-child { text-align: right; }

.mini-table-row {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 26px;
}

.mini-table-row:last-child { border-bottom: none; }

.mini-table-row .t-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.mini-table-row .t-val {
  flex: 1;
  color: var(--text-secondary);
}

.mini-table-row .t-region {
  flex: 1;
  color: var(--text-muted);
  text-align: right;
}


/* ============================
   FLOW DIAGRAM (horizontal process)
   ============================ */

.flow-diagram {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px 0;
}

.flow-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  gap: 10px;
}

.flow-node.highlight {
  border-color: var(--slide-accent);
  background: color-mix(in srgb, var(--slide-accent) 8%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--slide-accent) 10%, transparent);
}

.flow-node .flow-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slide-accent);
}

.flow-node .flow-icon svg {
  width: 100%;
  height: 100%;
}

.flow-node .flow-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.flow-node .flow-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
}

.flow-arrow {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.flow-arrow svg {
  width: 20px;
  height: 20px;
}


/* ============================
   ICON GRID (capability display)
   ============================ */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  align-content: center;
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  text-align: center;
}

.icon-card svg {
  width: 48px;
  height: 48px;
  color: var(--slide-accent);
}

.icon-card .icon-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}


/* ============================
   CONTENT SUBSECTION
   ============================ */

.content-subsection {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  margin-top: 20px;
}

.content-subsection .sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.content-subsection .sub-detail {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.content-subsection .sub-highlight {
  font-size: 20px;
  color: var(--brand-accent-green);
  margin-top: 8px;
}


/* ============================
   ARCH DIAGRAM (within comparison cols)
   ============================ */

.arch-diagram {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
}

.arch-diagram svg,
.reveal .slides .arch-diagram img {
  width: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* ============================
   BRUSHSTROKE TEXTURES
   ============================ */

.brush {
  position: absolute;
  mix-blend-mode: screen;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.brush--white {
  opacity: 0.18;
}
