/**
 * Scaleflow theme for reveal.js
 * All white slides. Title/chapter slides get larger headings.
 * Brand: Orange #DD653B, Blue #3662E3, Green #43946C
 */

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

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
  --r-background-color: #FFFFFF;
  --r-main-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-main-font-size: 30px;
  --r-main-color: #2A2A3C;
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 36px 0;
  --r-heading-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-heading-color: #DD653B;
  --r-heading-line-height: 1.15;
  --r-heading-letter-spacing: -0.02em;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 800;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 2.6em;
  --r-heading2-size: 2em;
  --r-heading3-size: 1.6em;
  --r-heading4-size: 1.1em;
  --r-code-font: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  --r-link-color: #3662E3;
  --r-link-color-dark: #2A4EB5;
  --r-link-color-hover: #DD653B;
  --r-selection-background-color: rgba(221, 101, 59, 0.3);
  --r-selection-color: #fff;
  --r-overlay-element-bg-color: 240, 240, 240;
  --r-overlay-element-fg-color: 0, 0, 0;

  /* Scaleflow brand tokens */
  --sf-orange: #DD653B;
  --sf-blue: #3662E3;
  --sf-green: #43946C;
  --sf-dark: #15181E;
  --sf-gray: #6B7280;
  --sf-light: #F3F4F6;
  --sf-white: #FFFFFF;
}

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

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: normal;
  color: var(--r-main-color);
}

/*********************************************
 * DEFAULT SLIDE LAYOUT
 *********************************************/
.reveal .slides section {
  text-align: left;
  padding-bottom: 50px;
  padding-top: 10px;
}

/*********************************************
 * TITLE / CHAPTER SLIDES
 * Much larger headings, centered
 *********************************************/
.reveal .slides section.title-slide {
  text-align: center;
}

.reveal .slides section.title-slide h1 {
  font-size: 3.4em;
}

.reveal .slides section.title-slide h1,
.reveal .slides section.title-slide h2 {
  margin-bottom: 0.6em;
}

.reveal .slides section.title-slide h2 {
  font-size: 2.8em;
}

.reveal .slides section.title-slide p {
  color: var(--sf-gray);
}

/*********************************************
 * HEADINGS
 *********************************************/
.reveal h1 {
  color: var(--sf-orange);
  text-shadow: none;
}

.reveal h2 {
  color: var(--sf-orange);
}

.reveal h3 {
  color: var(--sf-orange);
  margin-bottom: 1.2em;
}

/*********************************************
 * TYPOGRAPHY
 *********************************************/
.reveal p {
  line-height: 1.5;
  margin: 0 0 0.6em 0;
}

.reveal strong {
  color: var(--sf-dark);
  font-weight: 700;
}

.reveal em {
  font-style: italic;
}

.reveal blockquote {
  background: var(--sf-light);
  border-left: 4px solid var(--sf-blue);
  padding: 0.6em 1em;
  margin: 0.8em auto;
  width: 85%;
  font-style: italic;
  border-radius: 4px;
  color: var(--sf-dark);
}

.reveal blockquote p {
  margin: 0;
}

/*********************************************
 * CODE
 *********************************************/
.reveal code {
  background-color: var(--sf-light);
  color: var(--sf-dark);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.8em;
}

.reveal pre {
  box-shadow: none;
  width: 90%;
  margin: 0.8em auto;
}

.reveal pre code {
  display: block;
  padding: 0.8em;
  max-height: 400px;
  background: var(--sf-dark);
  color: #E2E8F0;
  border-radius: 8px;
  font-size: 0.7em;
  line-height: 1.4;
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-decoration: underline;
}

/*********************************************
 * LISTS
 *********************************************/
.reveal ul {
  list-style-type: disc;
  text-align: left;
  margin-left: 1em;
  padding-left: 0.5em;
}

.reveal ol {
  list-style-type: decimal;
  text-align: left;
  margin-left: 1em;
  padding-left: 0.5em;
}

.reveal ul ul {
  list-style-type: circle;
}

.reveal li {
  margin-bottom: 0.4em;
  line-height: 1.45;
}

/*********************************************
 * TABLES
 *********************************************/
.reveal table {
  margin: auto;
  border-collapse: collapse;
  font-size: 0.85em;
  width: 90%;
}

.reveal table td,
.reveal table th {
  text-align: left;
}

.reveal table th {
  background: var(--sf-orange);
  color: var(--sf-white);
  font-weight: 700;
  padding: 0.5em 0.8em;
  text-align: left;
}

.reveal table td {
  padding: 0.4em 0.8em;
  border-bottom: 1px solid #E5E7EB;
}

/*********************************************
 * ACCENT BAR
 *********************************************/
.reveal .accent-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.2em;
}

.reveal .accent-bar span {
  background: var(--sf-light);
  color: var(--sf-gray);
  padding: 0.4em 1.2em;
  border-radius: 4px;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/*********************************************
 * LOGO — TOP RIGHT
 *********************************************/
.slide-logo {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100;
  pointer-events: none;
}

.slide-logo img {
  height: 28px;
}

/*********************************************
 * PERSISTENT FOOTER
 * Title left | slide number center | link right
 *********************************************/
.slide-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--sf-white);
  border-top: 1px solid #E5E7EB;
  z-index: 100;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--sf-gray);
}

.slide-footer a {
  color: var(--sf-blue);
  text-decoration: none;
}

.slide-footer a:hover {
  color: var(--sf-orange);
}

.slide-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/*********************************************
 * PROGRESS BAR — above the footer
 *********************************************/
.reveal .progress {
  color: var(--sf-orange);
  height: 3px;
  bottom: 40px;
}

/*********************************************
 * CONTROLS — moved up above footer
 *********************************************/
.reveal .controls {
  color: var(--sf-orange);
  bottom: 48px;
}

/*********************************************
 * SLIDE NUMBER — hidden
 *********************************************/
.reveal .slide-number {
  display: none;
}

/*********************************************
 * TWO-COLUMN LAYOUT
 *********************************************/
.reveal .two-col {
  display: flex;
  gap: 2em;
  align-items: flex-start;
  margin-top: 0.4em;
}

.reveal .two-col .col {
  flex: 1;
}

.reveal .two-col .callout {
  background: var(--sf-light);
  border-left: 4px solid var(--sf-orange);
  border-radius: 6px;
  padding: 1em 1.2em;
}

/*********************************************
 * FONT SIZE HELPERS
 *********************************************/
.reveal .small {
  font-size: 0.55em;
  color: var(--sf-gray);
  margin-top: 0.8em;
}
