/* ============================================
   Midnight Circuit Theme — Schema Markup Talk
   ============================================ */

:root {
  --bg: #0a0e27;
  --bg-light: #111631;
  --bg-card: #161b3d;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.6);
  --cyan-bg: rgba(0, 229, 255, 0.08);
  --violet: #7c3aed;
  --violet-bg: rgba(124, 58, 237, 0.1);
  --success: #22d3ee;
  --error: #f43f5e;
  --error-bg: rgba(244, 63, 94, 0.1);
  --success-bg: rgba(34, 211, 238, 0.1);
  --warning: #fbbf24;
  --divider: rgba(255, 255, 255, 0.06);
}

/* ---- Base ---- */

body {
  background: var(--bg) !important;
}

.reveal {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  font-size: 28px;
}

.reveal .slide-background {
  background: var(--bg) !important;
}

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

.reveal .slides section {
  background: var(--bg);
  padding: 48px 64px;
  height: 100%;
  box-sizing: border-box;
}

/* Circuit pattern background */
.reveal .slides section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 15% 85%, rgba(124, 58, 237, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.reveal .slides section > * {
  position: relative;
  z-index: 1;
}

/* ---- Typography ---- */

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
  margin-bottom: 0.4em;
  font-weight: 700;
}

.reveal h1 { font-size: 2.1em; line-height: 1.15; }
.reveal h2 { font-size: 1.5em; line-height: 1.2; }
.reveal h3 { font-size: 1.1em; }
.reveal h4 { font-size: 0.85em; color: var(--cyan); font-weight: 500; }

.reveal p {
  font-size: 0.78em;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 0.5em;
}

.reveal strong { color: var(--text); font-weight: 600; }
.reveal em { color: var(--cyan); font-style: normal; }

/* ---- Reusable Components ---- */

.accent-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  margin: 16px 0;
}

.subtitle {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan) !important;
  font-size: 0.7em !important;
  letter-spacing: 0.03em;
}

.subtitle::before {
  content: '> ';
  opacity: 0.5;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--cyan-bg);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5em;
  color: var(--cyan);
  margin-top: 8px;
}

/* ---- Bullet Lists ---- */

.reveal ul, .reveal ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reveal ul li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 0.78em;
  line-height: 1.55;
  color: var(--text-dim);
  border-bottom: 1px solid var(--divider);
}

.reveal ul li:last-child { border-bottom: none; }

.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 2px;
}

.reveal ol li {
  padding: 8px 0 8px 0;
  font-size: 0.78em;
  line-height: 1.55;
  color: var(--text-dim);
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.reveal ol {
  counter-reset: step;
}

.reveal ol li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-bg);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  color: var(--cyan);
  font-weight: 600;
}

/* ---- Code Blocks ---- */

.reveal pre {
  background: var(--bg-light);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 0.48em;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  width: 100%;
  margin: 0 0 8px 0;
}

.reveal pre code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  line-height: 1.65;
  padding: 0;
  background: transparent;
  max-height: none;
}

.reveal code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--cyan-bg);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--cyan);
}

.reveal pre code .json-key { color: var(--cyan); }
.reveal pre code .json-string { color: #a5f3fc; }
.reveal pre code .json-bracket { color: var(--text-dim); }
.reveal pre code .json-error { color: var(--error); text-decoration: wavy underline var(--error); }

/* ---- Callout ---- */

.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5em;
  color: var(--cyan);
}

.callout::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}

/* ---- Slide 2: Split Layout ---- */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.mock-website {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 0;
}

.mock-website .mock-nav {
  background: #2563eb;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-website .mock-nav .dot-r { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.mock-website .mock-nav .dot-y { width: 8px; height: 8px; border-radius: 50%; background: #eab308; }
.mock-website .mock-nav .dot-g { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mock-website .mock-nav span { color: white; font-size: 11px; margin-left: auto; font-family: 'General Sans', sans-serif; }

.mock-website .mock-body {
  padding: 16px;
}

.mock-website .mock-hero {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 10px;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.mock-website .mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.mock-website .mock-card {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  font-size: 9px;
  color: #475569;
}

.mock-website .mock-card .card-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.mock-html {
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.mock-html .tag-name { color: var(--error); }
.mock-html .attr-name { color: var(--warning); }
.mock-html .attr-val { color: #a5f3fc; }
.mock-html .comment { color: var(--text-muted); font-style: italic; }

/* ---- Slide 3: Name Tag Cards ---- */

.nametag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
  align-items: center;
}

.nametag-card {
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nametag-card.anonymous {
  background: var(--bg-light);
  border: 2px dashed var(--text-muted);
}

.nametag-card.anonymous .icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.nametag-card.anonymous p {
  color: var(--text-muted) !important;
  font-size: 0.65em !important;
}

.nametag-card.identified {
  background: linear-gradient(135deg, var(--cyan-bg), var(--violet-bg));
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.nametag-card.identified .badge {
  background: var(--cyan);
  color: var(--bg);
  padding: 4px 16px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.nametag-card.identified .name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1em;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.nametag-card.identified .role {
  font-size: 0.6em;
  color: var(--cyan);
}

.nametag-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55em;
  margin-top: 10px;
}

.nametag-label.bad { color: var(--error); }
.nametag-label.good { color: var(--success); }

/* ---- Slide 5: Google Result Mocks ---- */

.google-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.google-result {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.google-result .result-url {
  font-size: 11px;
  color: #202124;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.google-result .result-url .favicon {
  width: 18px;
  height: 18px;
  background: #e8eaed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.google-result .result-title {
  font-size: 16px;
  color: #1a0dab;
  font-weight: 400;
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}

.google-result .result-desc {
  font-size: 12px;
  color: #4d5156;
  line-height: 1.5;
  font-family: Arial, sans-serif;
}

.google-result.rich .stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
  font-size: 12px;
}

.google-result.rich .stars .star { color: #fbbc04; }
.google-result.rich .stars .rating { color: #70757a; font-size: 11px; }

.google-result.rich .faq-item {
  border-top: 1px solid #e8eaed;
  padding: 8px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #202124;
  font-family: Arial, sans-serif;
}

.google-result.rich .faq-item .arrow { color: #70757a; font-size: 14px; }

.result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.45em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-label.plain { color: var(--text-muted); }
.result-label.rich-label { color: var(--cyan); }

/* ---- Slide 8: Schema Type Grid ---- */

.schema-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.schema-card {
  background: var(--bg-light);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: center;
  transition: border-color 0.2s;
}

.schema-card .card-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.schema-card .card-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 3px;
}

.schema-card .card-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ---- Slide 9: Comparison ---- */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.comparison-panel {
  border-radius: 8px;
  overflow: hidden;
}

.comparison-panel .panel-header {
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-panel.wrong .panel-header {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.comparison-panel.correct .panel-header {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.comparison-panel.wrong pre {
  border-color: rgba(244, 63, 94, 0.2);
  border-left: 3px solid var(--error);
  border-radius: 0 0 8px 8px;
}

.comparison-panel.correct pre {
  border-color: rgba(34, 211, 238, 0.2);
  border-left: 3px solid var(--success);
  border-radius: 0 0 8px 8px;
}

.bug-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bug-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48em;
  color: var(--error);
}

.bug-item .bug-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--error-bg);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Slide 11: Step Flow ---- */

.step-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-bg);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.step-content {
  flex: 1;
}

.step-content .step-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62em;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.step-content .step-desc {
  font-size: 0.5em;
  color: var(--text-dim);
}

.step-connector {
  width: 2px;
  height: 12px;
  background: rgba(0, 229, 255, 0.2);
  margin-left: 17px;
}

.step.bonus .step-num {
  background: var(--violet-bg);
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.15);
}

/* Demo placeholder */
.demo-box {
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--violet-bg);
  border: 1px dashed var(--violet);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55em;
  color: var(--violet);
  text-align: center;
}

/* ---- Slide 13: Resources ---- */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-light);
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-size: 0.6em;
}

.resource-item .resource-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.resource-item .resource-name {
  color: var(--text);
  font-weight: 500;
}

.resource-item .resource-url {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  margin-left: auto;
}

/* ---- Slide 14: Thank You ---- */

.thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.thankyou-content h1 {
  text-align: center;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--cyan-bg);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55em;
  color: var(--cyan);
}

/* ---- Screenshot Placeholders ---- */

.screenshot-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--text-muted);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5em;
  color: var(--text-muted);
}

.screenshot-placeholder .icon {
  font-size: 24px;
  margin-bottom: 6px;
}

/* When screenshot is added, hide placeholder */
.screenshot-slot img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.screenshot-slot img + .screenshot-placeholder {
  display: none;
}

/* ---- Fragment styling ---- */

.reveal .fragment {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal .fragment.fade-up {
  transform: translateY(12px);
}

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

/* ---- Slide number ---- */

.reveal .slide-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  right: 24px;
  bottom: 16px;
}

/* ---- Progress bar ---- */

.reveal .progress {
  height: 3px;
  color: var(--cyan);
}
