@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
  --background-color: #0d1117;
  --section-divider-bg: #0d1117;

  /* Typography */
  --heading-font: "Outfit", "DM Sans", Helvetica, sans-serif;
  --body-font: "Outfit", "DM Sans", Helvetica, sans-serif;
  --mono-font: "Fira Code", "JetBrains Mono", monospace;
  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 48pt;
  --h2-size: 36pt;
  --h3-size: 24pt;
  --footnote-size: 11pt;

  /* Colors */
  --primary-color: #58a6ff;
  --secondary-color: #f0a500;
  --text-color: #e6edf3;
  --muted-color: #e3eaf0;
  --line-color: #30363d;

  /* Language accent colors */
  --unison-color: #00d4aa;
  --strand-color: #7ddf64;
  --verse-color: #c678dd;
  --flix-color: #e74c3c;

  /* Layout */
  --slide-padding: 60px;
  --slide-padding-top: 40px;
  --content-gap: 30px;
  --box-radius: 8px;
}

/* ===========================================
   BASE STYLES
   =========================================== */

.reveal {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
}

.reveal strong,
.reveal b {
  font-weight: bold;
}

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

.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--section-divider-bg) !important;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: var(--heading-font);
  text-transform: none;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.2;
}

.reveal h1 { font-size: var(--h1-size); }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 0; }
.reveal h3 { font-size: var(--h3-size); }

.reveal p,
.reveal li,
.reveal td,
.reveal th,
.reveal blockquote {
  font-size: var(--text-size);
  color: var(--text-color);
  line-height: 1.5;
}

/* ===========================================
   LISTS
   =========================================== */

.reveal ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.reveal ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--muted-color);
  border-radius: 50%;
}

/* ===========================================
   SLIDE LAYOUT
   =========================================== */

.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}

.reveal .slides section.stack {
  padding: 0 !important;
}

.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
}

.reveal .slides section > .footnote {
  position: absolute;
  bottom: 15px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  font-size: var(--footnote-size);
  color: var(--muted-color);
}

/* ===========================================
   SECTION DIVIDERS
   =========================================== */

.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.reveal .slides section.section-divider h1 {
  font-size: 56pt;
  text-align: center;
}

.reveal .slides section.section-divider p {
  font-size: 20pt;
  color: var(--muted-color);
}

/* ===========================================
   TEXT SIZE UTILITIES
   =========================================== */

.text-lg { font-size: 18pt !important; }
.text-xl { font-size: 20pt !important; }
.text-2xl { font-size: 24pt !important; }
.text-3xl { font-size: 28pt !important; }
.text-4xl { font-size: 32pt !important; }
.text-muted { color: var(--muted-color) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 600; }

/* ===========================================
   CODE BLOCKS
   =========================================== */

.reveal pre {
  width: 100%;
  margin: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-radius: var(--box-radius);
  border: 1px solid var(--line-color);
}

.reveal pre code {
  font-family: var(--mono-font);
  font-size: 0.55em;
  line-height: 1.6;
  padding: 20px 25px;
  border-radius: var(--box-radius);
  max-height: 480px;
}

.reveal code {
  font-family: var(--mono-font);
}

/* Inline code */
.reveal p code,
.reveal li code {
  background: rgba(110, 118, 129, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-color);
}

/* ===========================================
   BLOCKQUOTES
   =========================================== */

.reveal blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  background: none;
  box-shadow: none;
  width: 100%;
  max-width: none;
}

.reveal blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--muted-color);
}

/* ===========================================
   TABLES
   =========================================== */

.reveal table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
}

.reveal table th {
  background: rgba(110, 118, 129, 0.15);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line-color);
}

.reveal table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-color);
}

/* ===========================================
   LANGUAGE SECTION ACCENTS
   =========================================== */

/* Unison - teal */
.unison-accent h2 { color: var(--unison-color); }
.unison-accent .accent { color: var(--unison-color); }
.unison-accent pre { border-color: rgba(0, 212, 170, 0.3); }

/* Strand - lime */
.strand-accent h2 { color: var(--strand-color); }
.strand-accent .accent { color: var(--strand-color); }
.strand-accent pre { border-color: rgba(125, 223, 100, 0.3); }

/* Verse - purple */
.verse-accent h2 { color: var(--verse-color); }
.verse-accent .accent { color: var(--verse-color); }
.verse-accent pre { border-color: rgba(198, 120, 221, 0.3); }

/* Flix - red */
.flix-accent h2 { color: var(--flix-color); }
.flix-accent .accent { color: var(--flix-color); }
.flix-accent pre { border-color: rgba(231, 76, 60, 0.3); }

/* ===========================================
   LANGUAGE INTRO SLIDES (big centered name)
   =========================================== */

.lang-intro {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.lang-intro h1 {
  font-size: 72pt;
  font-weight: 700;
  margin-bottom: 10px;
}

.lang-intro .tagline {
  font-size: 18pt;
  color: var(--muted-color);
  font-style: italic;
  max-width: 800px;
  line-height: 1.5;
}

/* ===========================================
   ASSUMPTION CARD STYLE
   =========================================== */

.assumption-card {
  background: rgba(110, 118, 129, 0.08);
  border: 1px solid var(--line-color);
  border-left: 4px solid var(--muted-color);
  border-radius: var(--box-radius);
  padding: 16px 20px;
  margin: 8px 0;
}

.assumption-card p {
  margin: 0;
}

/* ===========================================
   FEATURE CARD STYLE
   =========================================== */

.feature-card {
  background: rgba(110, 118, 129, 0.08);
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  padding: 16px 20px;
}

.feature-card h3 {
  margin: 0 0 8px 0;
  font-size: 18pt;
}

.feature-card p {
  margin: 0;
  font-size: 14pt;
  color: var(--muted-color);
}

/* ===========================================
   SUMMARY TABLE (closing slide)
   =========================================== */

.summary-table td:first-child {
  font-weight: 600;
  width: 30%;
}

.summary-table td:nth-child(2) {
  width: 15%;
  font-family: var(--mono-font);
  font-size: 14pt;
}

/* ===========================================
   TITLE SLIDE UNDERLINE
   =========================================== */

.reveal .slides section > h2 {
  flex-shrink: 0;
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--line-color);
}

/* No underline on section dividers and lang intros */
.reveal .slides section.section-divider > h1,
.reveal .slides section.lang-intro > h1 {
  border-bottom: none;
  padding-bottom: 0;
}

/* ===========================================
   MONOSPACE ACCENT (for techy labels)
   =========================================== */

.mono {
  font-family: var(--mono-font);
  font-size: 0.9em;
}

/* ===========================================
   SLIDE NUMBER STYLING
   =========================================== */

.reveal .slide-number {
  font-family: var(--mono-font);
  font-size: 12pt;
  color: var(--muted-color);
  background: transparent;
}

/* ===========================================
   SOCIAL FOOTER
   =========================================== */

.social-footer {
  position: fixed;
  bottom: 12px;
  right: 20px;
  z-index: 30;
  display: flex;
  gap: 16px;
  font-family: var(--body-font);
  font-size: 9pt;
}

.social-footer a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-footer a:hover {
  opacity: 1;
}
