/* ============================================================
   Claude Code vs Copilot — Custom Reveal.js Theme
   Aesthetic: Technical Editorial
   Base: reveal.js white theme (overridden via cascade)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:wght@700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --c-primary: #2c3e50;
  --c-primary-light: #34495e;
  --c-claude: #3498db;
  --c-claude-deep: #2980b9;
  --c-claude-glow: rgba(52, 152, 219, 0.15);
  --c-claude-soft: rgba(52, 152, 219, 0.08);
  --c-copilot: #e74c3c;
  --c-copilot-deep: #c0392b;
  --c-copilot-glow: rgba(231, 76, 60, 0.15);
  --c-white: #ffffff;
  --c-off-white: #f8f9fa;
  --c-light-gray: #ecf0f1;
  --c-mid-gray: #bdc3c7;
  --c-text: #2c3e50;
  --c-text-light: #7f8c8d;
  --c-code-bg: #1e1e1e;
  --c-code-text: #d4d4d4;
  --c-success: #27ae60;
  --c-warning: #f39c12;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.14);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ── Base Overrides ────────────────────────────────────── */
.reveal-viewport {
  background: var(--c-white) !important;
}

.reveal {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 400;
  color: var(--c-text);
}

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

.reveal .slides section {
  padding: 60px 80px;
  box-sizing: border-box;
}

/* ── Typography ────────────────────────────────────────── */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--font-body);
  color: var(--c-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.6em;
  text-transform: none;
}

.reveal h1 {
  font-family: var(--font-display);
  font-size: 2.8em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.reveal h2 {
  font-size: 1.8em;
  position: relative;
  padding-bottom: 0.4em;
}

.reveal h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-claude), var(--c-claude-deep));
  border-radius: 2px;
}

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

.reveal p {
  line-height: 1.65;
  margin-bottom: 0.8em;
}

.reveal strong {
  font-weight: 600;
  color: var(--c-primary);
}

.reveal em {
  color: var(--c-text-light);
}

/* ── Slide-specific overrides ──────────────────────────── */
.reveal .slides section.title-slide {
  text-align: center;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.reveal .slides section.center-slide {
  text-align: center;
}

/* ── Title slide ───────────────────────────────────────── */
.title-slide .title-accent {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.45em;
  font-weight: 500;
  color: var(--c-claude);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  position: relative;
  padding: 0.3em 0;
}

.title-slide .title-accent::before,
.title-slide .title-accent::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--c-claude);
}

.title-slide .title-accent::before { top: 0; }
.title-slide .title-accent::after { bottom: 0; }

.title-slide h1 {
  margin-bottom: 0.3em;
  max-width: 1400px;
}

.title-slide .subtitle {
  font-size: 1.1em;
  color: var(--c-text-light);
  font-weight: 300;
  max-width: 900px;
  line-height: 1.5;
}

.title-slide .title-meta {
  margin-top: 2em;
  font-family: var(--font-mono);
  font-size: 0.55em;
  color: var(--c-mid-gray);
  letter-spacing: 0.05em;
}

/* ── Diagonal accent bar ───────────────────────────────── */
.slide-accent-bar {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 8px;
  background: linear-gradient(90deg, var(--c-claude), var(--c-claude-deep));
  border-radius: 0 0 0 4px;
}

/* ── Tables ────────────────────────────────────────────── */
.reveal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 0.75em;
  margin: 1em 0;
}

.reveal table thead th {
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  border: none;
}

.reveal table thead th:first-child {
  text-align: left;
}

.reveal table tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--c-light-gray);
  border: none;
  border-bottom: 1px solid var(--c-light-gray);
}

.reveal table tbody tr:nth-child(even) {
  background: var(--c-off-white);
}

.reveal table tbody tr:nth-child(odd) {
  background: var(--c-white);
}

.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal table tbody tr:hover {
  background: var(--c-claude-soft);
}

.reveal table .check {
  color: var(--c-success);
  font-weight: 700;
  font-size: 1.3em;
}

.reveal table .cross {
  color: var(--c-copilot);
  font-weight: 700;
  font-size: 1.3em;
}

.reveal table .partial {
  color: var(--c-warning);
  font-weight: 600;
  font-size: 1.1em;
}

/* ── Comparison Grid ───────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 1em;
}

.comparison-grid .col {
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--c-off-white);
  border-top: 4px solid var(--c-mid-gray);
}

.comparison-grid .col.claude-col {
  border-top-color: var(--c-claude);
  background: linear-gradient(180deg, var(--c-claude-soft), var(--c-off-white));
}

.comparison-grid .col.copilot-col {
  border-top-color: var(--c-copilot);
  background: linear-gradient(180deg, var(--c-copilot-glow), var(--c-off-white));
}

.comparison-grid .col h3 {
  margin-top: 0;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.comparison-grid .col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-grid .col ul li {
  padding: 0.4em 0;
  padding-left: 1.4em;
  position: relative;
  font-size: 0.85em;
  line-height: 1.5;
}

.comparison-grid .col ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--c-claude);
}

.comparison-grid .col.copilot-col ul li::before {
  color: var(--c-copilot);
}

/* ── Capability Cards ──────────────────────────────────── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 1em;
}

.capabilities-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.capability-card {
  background: var(--c-white);
  border: 1px solid var(--c-light-gray);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-claude), var(--c-claude-deep));
}

.capability-card .card-icon {
  font-size: 1.6em;
  margin-bottom: 0.4em;
  display: block;
}

.capability-card h3 {
  font-size: 0.9em;
  margin-bottom: 0.3em;
  color: var(--c-primary);
}

.capability-card p {
  font-size: 0.7em;
  color: var(--c-text-light);
  line-height: 1.5;
  margin: 0;
}

/* Bottom row centering for 3-col with 5 items */
.capabilities-grid .capability-card:nth-child(4) {
  grid-column: 1 / 2;
  justify-self: end;
  width: 90%;
}

.capabilities-grid .capability-card:nth-child(5) {
  grid-column: 2 / 3;
  justify-self: start;
  width: 90%;
}

/* ── Workflow Diagram ──────────────────────────────────── */
.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5em 0;
  flex-wrap: nowrap;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  background: var(--c-white);
  border: 2px solid var(--c-light-gray);
  border-radius: var(--radius-md);
  min-width: 200px;
  max-width: 260px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.workflow-step.active,
.workflow-step:hover {
  border-color: var(--c-claude);
  box-shadow: 0 4px 20px var(--c-claude-glow);
}

.workflow-step .step-number {
  font-family: var(--font-mono);
  font-size: 0.6em;
  font-weight: 600;
  color: var(--c-claude);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.workflow-step .step-icon {
  font-size: 1.8em;
  margin-bottom: 0.3em;
}

.workflow-step h4 {
  font-size: 0.8em;
  margin: 0 0 0.3em;
  color: var(--c-primary);
}

.workflow-step p {
  font-size: 0.6em;
  color: var(--c-text-light);
  margin: 0;
  line-height: 1.4;
}

.workflow-arrow {
  font-size: 1.6em;
  color: var(--c-claude);
  flex-shrink: 0;
  padding: 0 8px;
  font-weight: 300;
}

/* ── Code Blocks ───────────────────────────────────────── */
.reveal pre {
  width: 100%;
  margin: 1em 0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  font-size: 0.48em;
}

.reveal pre code {
  font-family: var(--font-mono);
  background: var(--c-code-bg) !important;
  color: var(--c-code-text);
  padding: 28px 32px;
  border-radius: var(--radius-md);
  line-height: 1.6;
  max-height: 600px;
  font-size: 1em;
}

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

.reveal p code,
.reveal li code {
  background: var(--c-off-white);
  color: var(--c-claude-deep);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid var(--c-light-gray);
}

/* Code label */
.code-label {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--c-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  display: block;
}

/* ── Highlight Utilities ───────────────────────────────── */
.claude-highlight {
  color: var(--c-claude);
  font-weight: 600;
}

.copilot-highlight {
  color: var(--c-copilot);
  font-weight: 600;
}

.claude-bg {
  background: var(--c-claude-glow);
  border-left: 4px solid var(--c-claude);
  padding: 16px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.8em 0;
}

.copilot-bg {
  background: var(--c-copilot-glow);
  border-left: 4px solid var(--c-copilot);
  padding: 16px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.8em 0;
}

/* ── Tip Cards ─────────────────────────────────────────── */
.tip-card {
  background: var(--c-off-white);
  border: 1px solid var(--c-light-gray);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-claude);
}

.tip-card .tip-number {
  font-family: var(--font-mono);
  font-size: 0.55em;
  color: var(--c-claude);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
  display: block;
}

.tip-card h4 {
  font-size: 0.8em;
  margin: 0 0 0.2em;
  color: var(--c-primary);
}

.tip-card p {
  font-size: 0.65em;
  color: var(--c-text-light);
  margin: 0;
  line-height: 1.5;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 0.8em;
}

/* ── Agent Diagram ─────────────────────────────────────── */
.agent-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 1em 0;
}

.agent-hub {
  background: linear-gradient(135deg, var(--c-claude), var(--c-claude-deep));
  color: white;
  padding: 20px 48px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9em;
  box-shadow: 0 4px 20px var(--c-claude-glow);
  text-align: center;
}

.agent-spokes {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.agent-spoke {
  background: var(--c-white);
  border: 2px solid var(--c-light-gray);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  min-width: 180px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.agent-spoke:hover {
  border-color: var(--c-claude);
  box-shadow: var(--shadow-md);
}

.agent-spoke .spoke-icon {
  font-size: 1.4em;
  margin-bottom: 0.3em;
  display: block;
}

.agent-spoke h4 {
  font-size: 0.7em;
  margin: 0 0 0.2em;
}

.agent-spoke p {
  font-size: 0.55em;
  color: var(--c-text-light);
  margin: 0;
}

.connector-down {
  width: 2px;
  height: 30px;
  background: var(--c-mid-gray);
  position: relative;
}

.connector-down::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--c-mid-gray);
}

/* Branching connectors */
.connector-branch {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  height: 30px;
  position: relative;
}

.connector-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--c-mid-gray);
}

/* ── Lists ─────────────────────────────────────────────── */
.reveal ul,
.reveal ol {
  margin-left: 0;
  padding-left: 1.2em;
}

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

.reveal ul li {
  padding: 0.3em 0;
  padding-left: 1.4em;
  position: relative;
  line-height: 1.5;
}

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

.reveal .slides section ul.clean-list li::before {
  display: none;
}

.reveal .slides section ul.clean-list {
  list-style: none;
  padding: 0;
}

/* ── Fragment Animations ───────────────────────────────── */
.reveal .fragment {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal .fragment.fade-up {
  transform: translateY(30px);
  opacity: 0;
}

.reveal .fragment.fade-up.visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal .fragment.zoom-in {
  transform: scale(0.9);
  opacity: 0;
}

.reveal .fragment.zoom-in.visible {
  transform: scale(1);
  opacity: 1;
}

/* ── Slide Number ──────────────────────────────────────── */
.reveal .slide-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-mid-gray);
  background: transparent;
  right: 24px;
  bottom: 24px;
}

/* ── Progress Bar ──────────────────────────────────────── */
.reveal .progress {
  height: 4px;
  color: var(--c-claude);
}

/* ── Controls ──────────────────────────────────────────── */
.reveal .controls .navigate-left,
.reveal .controls .navigate-right,
.reveal .controls .navigate-up,
.reveal .controls .navigate-down {
  color: var(--c-claude);
}

/* ── Speaker Notes ─────────────────────────────────────── */
.reveal aside.notes {
  display: none;
}

/* ── Resource links / CTA ──────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1em;
}

.resource-card {
  background: var(--c-off-white);
  border: 1px solid var(--c-light-gray);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-card .resource-icon {
  font-size: 1.6em;
  margin-bottom: 0.3em;
  display: block;
}

.resource-card h4 {
  font-size: 0.8em;
  margin: 0 0 0.2em;
}

.resource-card p {
  font-size: 0.6em;
  color: var(--c-text-light);
  margin: 0;
}

/* ── Badge / Label ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.5em;
}

.badge-claude {
  background: var(--c-claude-glow);
  color: var(--c-claude-deep);
}

.badge-copilot {
  background: var(--c-copilot-glow);
  color: var(--c-copilot-deep);
}

.badge-new {
  background: rgba(39, 174, 96, 0.15);
  color: var(--c-success);
}

/* ── Section Divider ───────────────────────────────────── */
.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--c-claude);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.4em;
  display: block;
}

/* ── Conclusion / CTA ──────────────────────────────────── */
.cta-block {
  text-align: center;
  margin-top: 1.5em;
  padding: 48px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  border-radius: var(--radius-lg);
  color: var(--c-white);
}

.cta-block h3 {
  color: var(--c-white);
  font-size: 1.4em;
  margin-bottom: 0.3em;
}

.cta-block p {
  color: rgba(255,255,255,0.8);
  font-size: 0.8em;
}

/* ── Inline Diagram Boxes ──────────────────────────────── */
.diagram-box {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: var(--c-off-white);
  border: 1px solid var(--c-light-gray);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.75em;
  font-weight: 500;
}

.diagram-box.accent {
  background: var(--c-claude-glow);
  border-color: var(--c-claude);
  color: var(--c-claude-deep);
}

/* ── Print / PDF Export ────────────────────────────────── */
@media print {
  .reveal-viewport {
    background: white !important;
  }

  .reveal .fragment {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .reveal .fragment.fade-up {
    transform: none !important;
    opacity: 1 !important;
  }

  .reveal pre code {
    max-height: none;
  }

  .reveal .slide-number {
    display: none;
  }

  .reveal .progress {
    display: none;
  }

  .capability-card,
  .tip-card,
  .workflow-step,
  .agent-spoke {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .capability-card:hover,
  .workflow-step:hover,
  .agent-spoke:hover {
    transform: none;
    box-shadow: none;
  }
}
