/* Base reveal.js styles
 *
 * Copy this file as styles.css for each new presentation.
 * Customize the CSS variables (especially colors) for your theme.
 *
 * IMPORTANT: All font sizes use pt (points) for predictable sizing.
 * Base text is intentionally small (16pt) to fit content-heavy slides.
 * Use .text-lg, .text-xl, etc. classes when slides have less content.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* ===========================================
   CSS VARIABLES - Customize these for each presentation
   =========================================== */
:root {
  /* ===========================================
     BACKGROUND COLORS
     For dark presentations, change to dark colors (e.g., #1a1a2e, #0d1117)
     Then update --text-color and --muted-color to light colors below.
     =========================================== */
  --background-color: #ffffff;
  --section-divider-bg: #1A5276;

  /* Typography - ALWAYS use pt for font sizes */
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Source Sans Pro", Helvetica, sans-serif;
  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 48pt;
  --h2-size: 36pt;
  --h3-size: 24pt;
  --footnote-size: 11pt;

  /* Colors - CUSTOMIZE THESE */
  --primary-color: #1A5276;
  --secondary-color: #D4AC0D;
  --accent-color: #2E86AB;
  --text-color: #2C3E50;
  --muted-color: #7F8C8D;
  --line-color: #1A5276;
  --white: #ffffff;

  /* Layout */
  --slide-padding: 60px;
  --slide-padding-top: 40px;
  --content-gap: 30px;

  /* Border radius for custom components */
  --box-radius: 8px;
}

/* ===========================================
   BASE STYLES - Override reveal.js defaults
   =========================================== */

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

/* Restore bold after reset.css strips it with font: inherit */
.reveal strong,
.reveal b {
  font-weight: bold;
}

/* Apply background colors */
.reveal-viewport {
  background-color: var(--background-color);
}

/* Section divider background via data-state */
.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(--primary-color);
  border-radius: 50%;
}

.reveal ul ul li::before {
  background: var(--muted-color);
  width: 6px;
  height: 6px;
}

/* Prevent double-sizing for nested elements */
.reveal blockquote p {
  font-size: inherit;
}

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

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

/* Vertical stack wrapper - no padding, just pass through */
.reveal .slides section.stack {
  padding: 0 !important;
}

/* Content area - fills remaining space */
.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--content-gap);
  text-align: center;
  width: 100%;
}

/* Footnotes at bottom */
.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 - Centered title slides
   =========================================== */

.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  background-color: var(--section-divider-bg) !important;
}

.reveal .slides section.section-divider h1 {
  font-size: 56pt;
  text-align: center;
  color: var(--white);
}

.reveal .slides section.section-divider p {
  font-size: 20pt;
  color: rgba(255, 255, 255, 0.8);
}

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

   Base text is 16pt - use these to scale UP when
   slides have less content and you want to fill space.
   =========================================== */

.text-lg { font-size: 18pt !important; }   /* Slightly larger */
.text-xl { font-size: 20pt !important; }   /* Medium emphasis */
.text-2xl { font-size: 24pt !important; }  /* Strong emphasis */
.text-3xl { font-size: 28pt !important; }  /* Very large */
.text-4xl { font-size: 32pt !important; }  /* Maximum body text */

/* Other text utilities */
.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; }

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

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

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

/* ===========================================
   OPTIONAL: TITLE WITH UNDERLINE

   Add this to presentations where you want
   a line under the slide title.
   =========================================== */

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

/* ===========================================
   OPTIONAL: DECORATIVE ELEMENTS
   =========================================== */

/* Top decorative line on all slides */
/*
.reveal .slides section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}
*/

/* Bottom decorative line */
/*
.reveal .slides section::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  height: 2px;
  background: var(--line-color);
}
*/

/* ===========================================
   ANIMATED BACKGROUND
   =========================================== */

#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.reveal-viewport {
  background: transparent !important;
}

.reveal .slides section {
  background: transparent !important;
  backdrop-filter: blur(0px);
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.reveal .slides section.section-divider {
  background: linear-gradient(135deg, var(--section-divider-bg) 0%, #2471a3 100%);
  backdrop-filter: none;
  box-shadow: 0 8px 32px rgba(26, 82, 118, 0.3);
}

.reveal .slides section.section-divider h1,
.reveal .slides section.section-divider p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   CUSTOM COMPONENTS
   =========================================== */

/* Pain point cards */
.pain-card {
  background: rgba(255, 255, 255, 0.75);
  border-left: 4px solid var(--primary-color);
  padding: 12px 15px;
  border-radius: 0 var(--box-radius) var(--box-radius) 0;
  margin-bottom: 12px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pain-card h3 {
  color: var(--primary-color);
  margin-bottom: 6px;
  font-size: 14pt;
  line-height: 1.3;
}

.pain-card p {
  font-size: 11pt !important;
  line-height: 1.4;
}

/* Feature cards */
.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 82, 118, 0.15);
  border-radius: var(--box-radius);
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 13pt;
  line-height: 1.3;
}

.feature-card p {
  font-size: 10pt !important;
  line-height: 1.3;
  margin: 0;
}

/* Stats boxes */
.stat-box {
  text-align: center;
  padding: 15px;
}

.stat-box .stat-number {
  font-size: 36pt;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-box .stat-label {
  font-size: 12pt;
  color: var(--muted-color);
  margin-top: 5px;
}

/* Timeline */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.timeline-phase {
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12pt;
  min-width: 100px;
  text-align: center;
}

.timeline-content {
  margin-left: 20px;
  flex: 1;
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 16pt;
}

/* Section header accent */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  margin-left: 20px;
}

/* Table styling */
.reveal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.reveal table th {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

.reveal table td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(26, 82, 118, 0.1);
}

.reveal table tr:nth-child(even) {
  background: rgba(26, 82, 118, 0.03);
}

/* Icon container */
.icon-box {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16pt;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlight text */
.highlight {
  background: linear-gradient(180deg, transparent 50%, rgba(212, 172, 13, 0.3) 50%);
  padding: 0 4px;
}
