/* Teal Insights RevealJS Theme */
/* Based on the branding from your presentation deck */

:root {
  --teal-dark: #1e4a5f;        /* Main dark teal */
  --teal-medium: #4a90b8;      /* Medium blue-teal */
  --teal-light: #87ceeb;       /* Light blue */
  --teal-accent: #e8f4f8;      /* Very light blue/teal */
  --text-dark: #2c3e50;        /* Dark text */
  --text-light: #ffffff;       /* White text */
  --warning: #fff3cd;          /* Light yellow for warnings */
  --success: #d4edda;          /* Light green for success */
  --info: #f8f9fa;             /* Light gray for info */
}

/* Override reveal.js theme colors */
.reveal {
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 38px;
  font-weight: normal;
  color: var(--text-dark);
}

/* Headings */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: 0 0 20px 0;
  color: var(--teal-dark);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  word-wrap: break-word;
}

.reveal h1 {
  font-size: 2.5em;
}

.reveal h2 {
  font-size: 1.6em;
}

.reveal h3 {
  font-size: 1.3em;
}

/* Title slide styling */
.reveal .slides section[data-background-color="#1e4a5f"] h1,
.reveal .slides section[data-background-color="#1e4a5f"] h2,
.reveal .slides section[data-background-color="#1e4a5f"] h3 {
  color: var(--text-light);
}

.reveal .slides section[data-background-color="#4a90b8"] h1,
.reveal .slides section[data-background-color="#4a90b8"] h2,
.reveal .slides section[data-background-color="#4a90b8"] h3 {
  color: var(--text-light);
}

/* Text utilities */
.text-blue {
  color: var(--teal-medium) !important;
}

.text-teal {
  color: var(--teal-dark) !important;
}

.text-light {
  color: var(--text-light) !important;
}

/* Links */
.reveal a {
  color: var(--teal-medium);
  text-decoration: none;
  transition: color .15s ease;
}

.reveal a:hover {
  color: var(--teal-dark);
  text-shadow: none;
  border: none;
}

/* Code blocks */
.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: 20px auto;
  text-align: left;
  font-size: 0.55em;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  background-color: var(--info);
  border-left: 4px solid var(--teal-medium);
  padding: 20px;
}

.reveal pre code {
  display: block;
  padding: 5px;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
  background-color: transparent;
  color: var(--text-dark);
}

/* Activity slides styling */
.reveal .slides section h2:contains("Activity") {
  background: linear-gradient(135deg, var(--teal-medium), var(--teal-light));
  color: var(--text-light);
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* Emoji in headings */
.reveal h2:contains("🔧") {
  background: linear-gradient(135deg, var(--teal-medium), var(--teal-light));
  color: var(--text-light);
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* Chapter dividers */
.reveal .slides section[data-background-color="#1e4a5f"] {
  color: var(--text-light);
}

/* Special content boxes */
.callout-box {
  background-color: var(--teal-accent);
  border-left: 4px solid var(--teal-medium);
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.warning-box {
  background-color: var(--warning);
  border-left: 4px solid #ffc107;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.success-box {
  background-color: var(--success);
  border-left: 4px solid #28a745;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

/* Lists */
.reveal ul,
.reveal ol {
  display: block;
  margin-left: 1em;
}

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

.reveal ul li::before {
  content: "▸";
  color: var(--teal-medium);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Columns layout enhancement */
.reveal .columns {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.reveal .column {
  flex: 1;
}

/* Footer styling */
.reveal .footer {
  color: var(--teal-medium);
  font-size: 0.6em;
}

/* Logo positioning */
.reveal .slide-logo {
  position: fixed;
  bottom: 1em;
  right: 1em;
  max-height: 60px;
  opacity: 0.8;
}

/* Progress bar */
.reveal .progress {
  color: var(--teal-medium);
}

.reveal .progress span {
  background: var(--teal-medium);
}

/* Navigation controls */
.reveal .controls {
  color: var(--teal-medium);
}

/* Slide numbers */
.reveal .slide-number {
  color: var(--teal-medium);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 4px;
}

/* Chat prompt styling */
.chat-prompt {
  background: linear-gradient(135deg, var(--teal-accent), #f0f9ff);
  border: 2px solid var(--teal-light);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-weight: 500;
}

.chat-prompt::before {
  content: "💬 ";
  font-size: 1.2em;
}

/* Time indicators */
.time-indicator {
  background-color: var(--teal-medium);
  color: var(--text-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8em;
  display: inline-block;
  margin: 10px 0;
}

/* Book reference styling */
.book-reference {
  background-color: #f8f9fa;
  border: 2px solid var(--teal-light);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.9em;
  color: var(--teal-dark);
}

.book-reference::before {
  content: "📖 ";
  font-size: 1.1em;
}

/* Center text utility */
.center {
  text-align: center;
}

/* Smaller text utility */
.smaller {
  font-size: 0.8em !important;
}

/* Highlight boxes for key insights */
.key-insight {
  background: linear-gradient(135deg, var(--teal-medium), var(--teal-dark));
  color: var(--text-light);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
}

.key-insight::before {
  content: "💡 ";
  font-size: 1.3em;
}