/**
 * Custom theme for Gen-AI Dialogs presentation
 */

:root {
  /* Color palette */
  --primary-color: #2563eb;     /* Blue */
  --secondary-color: #10b981;   /* Green */
  --accent-color: #8b5cf6;      /* Purple */
  --background-color: #0f172a;  /* Dark blue */
  --text-color: #f8fafc;        /* Light gray */
  --text-dark: #1e293b;         /* Dark gray for contrast */
  --highlight: #fbbf24;         /* Yellow highlight */
}

/* Base styles */
.reveal {
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-size: 36px;
  font-weight: normal;
  color: var(--text-color);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 20px;
  background-color: var(--background-color);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  height: 100%;
}

/* Typography */
.reveal h1, 
.reveal h2, 
.reveal h3 {
  margin: 0 0 30px 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: none;
}

.reveal h1 {
  font-size: 2.5em;
  color: var(--primary-color);
}

.reveal h2 {
  font-size: 1.8em;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.reveal h3 {
  font-size: 1.3em;
  color: var(--secondary-color);
}

.reveal p {
  margin: 15px 0;
  line-height: 1.5;
}

.reveal ul {
  margin-left: 1.5em;
  line-height: 1.6;
}

.reveal li {
  margin: 12px 0;
}

/* Title slide */
.title-slide {
  text-align: center;
}

.title-slide h1 {
  font-size: 3em;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.title-slide .footnote {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.5em;
  color: var(--text-color);
  opacity: 0.7;
  font-style: italic;
}

.tech-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: -1;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="45" y="10" width="10" height="80" rx="5" fill="%232563eb"/><rect x="10" y="45" width="80" height="10" rx="5" fill="%232563eb"/><circle cx="50" cy="50" r="8" fill="%238b5cf6"/></svg>');
  background-size: 100px 100px;
}

/* Content layout */
.content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Icons */
.icons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tool-icon {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Infrastructure diagram */
.infra-diagram {
  margin: 20px 0;
}

.diagram {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.diagram-box {
  fill: var(--background-color);
  stroke: var(--primary-color);
  stroke-width: 2;
}

.diagram-text {
  fill: var(--text-color);
  font-size: 14px;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: 'Segoe UI', sans-serif;
}

/* Closing slide */
.closing-slide {
  text-align: center;
}

.contact-info {
  margin: 30px 0;
}

.qr-code {
  margin: 20px auto;
  background: white;
  padding: 10px;
  border-radius: 5px;
  width: fit-content;
}

/* Transitions */
.reveal .slides section {
  transition: transform 0.8s ease, opacity 0.8s ease;
}

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

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

/* Code and Prompts */
.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: 20px auto;
  text-align: left;
  font-size: 0.55em;
  font-family: monospace;
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Appendix Prompt Containers */
.prompt-container {
  max-height: 500px;
  overflow-y: auto;
  background-color: rgba(15, 23, 42, 0.7);
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
}

.prompt-container h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--secondary-color);
}

.prompt-code {
  font-size: 0.45em !important;
  line-height: 1.4em !important;
  max-height: 400px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.2) !important;
  padding: 15px !important;
  border-radius: 5px;
  white-space: pre-wrap;
}

.reveal code {
  font-family: monospace;
  text-transform: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}

/* Progress bar */
.reveal .progress {
  height: 5px;
  color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reveal {
    font-size: 28px;
  }
  
  .reveal h1 {
    font-size: 2em;
  }
  
  .reveal h2 {
    font-size: 1.5em;
  }
  
  .tool-icon {
    width: 40px;
    height: 40px;
  }
}
