/* ============================================
   Agentic Conf inspired theme
   Dark background, colored cards, clean grid
   ============================================ */

/* --- Back Link --- */
.back-link {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 100;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.back-link:hover {
  opacity: 1;
  color: var(--accent-blue);
}

/* --- Base --- */
:root {
  --bg: #0a0a0f;
  --bg-card: #141420;
  --bg-card-hover: #1a1a2e;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --accent-blue: #4a7dff;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-pink: #ec4899;
  --radius: 12px;
  --radius-sm: 8px;
}

.reveal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
}

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

.reveal .slides section {
  padding: 40px 60px;
  box-sizing: border-box;
  height: 100%;
}

.reveal h1, .reveal h2, .reveal h3 {
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.02em;
}

.reveal h2 {
  font-size: 2.2em;
  margin-bottom: 0.6em;
}

/* --- Title Slide --- */
.title-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.title-card {
  background: linear-gradient(135deg, #141420 0%, #1a1a2e 100%);
  border: 1px solid rgba(74, 125, 255, 0.2);
  border-radius: 20px;
  padding: 60px 80px;
  text-align: center;
  max-width: 900px;
}

.conf-tag {
  font-size: 0.9em;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.title-card h1 {
  font-size: 3.5em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.title-card .subtitle {
  font-size: 1.3em;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.speaker-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-blue);
}

.speaker-name {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0;
}

.speaker-role {
  font-size: 0.85em;
  color: var(--text-muted);
  margin: 0;
}

/* --- About Slide --- */
.about-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid rgba(74, 125, 255, 0.3);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-left: 3px solid var(--accent-blue);
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 120px;
  flex-shrink: 0;
  padding-top: 0.15em;
}

.detail-value {
  font-weight: 500;
}

/* --- Calendar Slide --- */
.calendar-slide h2 {
  font-size: 1.8em;
  margin-bottom: 0.4em;
}

.calendar {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.65em;
}

.cal-header {
  display: grid;
  grid-template-columns: 50px repeat(5, 1fr);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cal-time-col {
  padding: 10px;
}

.cal-day {
  padding: 10px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95em;
}

.cal-body {
  display: grid;
  grid-template-columns: 50px repeat(5, 1fr);
  min-height: 500px;
}

.cal-times {
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  padding-right: 10px;
}

.cal-time-label {
  padding: 2px 6px 0 0;
  color: var(--text-muted);
  font-size: 0.75em;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: start;
  justify-content: flex-end;
  white-space: nowrap;
}

/* Daughter time */
.ev-daughter {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
  border-left: 3px solid var(--accent-pink);
  font-size: 1em;
}

/* Calendar tagline */
.cal-tagline {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cal-tag {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.75em;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
}

.tag-orange { color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.tag-purple { color: #b794f6; border-color: rgba(139, 92, 246, 0.3); }
.tag-blue { color: #7da8ff; border-color: rgba(74, 125, 255, 0.3); }
.tag-teal { color: #5eead4; border-color: rgba(20, 184, 166, 0.3); }
.tag-red { color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

.segfault-line {
  text-align: center;
  margin-top: 24px;
}

.segfault-tag {
  font-size: 1.2em;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 8px 28px;
}

.cal-col {
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  gap: 2px;
  padding: 2px;
  border-left: 1px solid rgba(255,255,255,0.04);
}

.cal-event {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.85em;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ev-blue { background: rgba(74, 125, 255, 0.2); color: #7da8ff; border-left: 3px solid var(--accent-blue); }
.ev-purple { background: rgba(139, 92, 246, 0.2); color: #b794f6; border-left: 3px solid var(--accent-purple); }
.ev-teal { background: rgba(20, 184, 166, 0.2); color: #5eead4; border-left: 3px solid var(--accent-teal); }
.ev-orange { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-left: 3px solid var(--accent-orange); }
.ev-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border-left: 3px solid var(--accent-red); }
.ev-green { background: rgba(34, 197, 94, 0.2); color: #86efac; border-left: 3px solid var(--accent-green); }
.ev-gray { background: rgba(136, 136, 160, 0.15); color: var(--text-muted); border-left: 3px solid #555; }

/* --- Card Grid --- */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.card-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 1200px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.2s;
}

.card-icon {
  font-size: 2em;
  flex-shrink: 0;
}

.info-card p {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.4;
}

/* Card color accents */
.card-blue { border-left: 4px solid var(--accent-blue); }
.card-purple { border-left: 4px solid var(--accent-purple); }
.card-teal { border-left: 4px solid var(--accent-teal); }
.card-orange { border-left: 4px solid var(--accent-orange); }
.card-red { border-left: 4px solid var(--accent-red); }
.card-green { border-left: 4px solid var(--accent-green); }

.slide-footnote {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 30px;
  font-size: 1.1em;
}


/* --- Split Layout --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.split-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card.stacked {
  padding: 20px 24px;
}

.split-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot {
  max-width: 100%;
  max-height: 600px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* --- Flow Slide --- */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.flow-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 200px;
  position: relative;
}

.step-number {
  display: block;
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-1 .step-number { color: var(--accent-blue); }
.step-1 { border-top: 3px solid var(--accent-blue); }
.step-2 .step-number { color: var(--accent-purple); }
.step-2 { border-top: 3px solid var(--accent-purple); }
.step-3 .step-number { color: var(--accent-teal); }
.step-3 { border-top: 3px solid var(--accent-teal); }
.step-4 .step-number { color: var(--accent-green); }
.step-4 { border-top: 3px solid var(--accent-green); }

.step-label {
  display: block;
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 6px;
}

.step-desc {
  display: block;
  font-size: 0.85em;
  color: var(--text-muted);
}

.flow-arrow {
  font-size: 2em;
  color: var(--text-muted);
}

.steering-note {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  margin-top: 30px;
  text-align: center;
  border: 1px dashed rgba(245, 158, 11, 0.3);
  color: var(--accent-orange);
  font-size: 1em;
}

.steering-icon {
  margin-right: 8px;
}

/* --- Projects Slide --- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  height: 70%;
}

.poster {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.poster-tag {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.poster-emoji {
  font-size: 3em;
  margin-bottom: 16px;
}

.poster h3 {
  font-size: 1.2em;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.poster p {
  font-size: 0.8em;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.poster-private { border-top: 4px solid var(--accent-blue); }
.tag-private { background: rgba(74, 125, 255, 0.15); color: #7da8ff; }

.poster-work { border-top: 4px solid var(--accent-red); }
.tag-work { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.poster-coming { border-top: 4px solid var(--accent-green); }
.tag-coming { background: rgba(34, 197, 94, 0.15); color: #86efac; }

/* --- Flow extras --- */
.flow-container {
  position: relative;
}

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

.flow-annotation {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-70px);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  z-index: 10;
}

.annotation-arrow {
  flex-shrink: 0;
  margin-top: 30px;
}

.annotation-text {
  color: #fbbf24;
  font-style: italic;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9em;
}

/* --- Hurts slide compact --- */
.hurts-slide .card-grid {
  gap: 12px;
}

.hurts-slide .info-card {
  padding: 16px 24px;
}

.hurts-slide .info-card p {
  font-size: 0.95em;
}

.hurts-slide .card-icon {
  font-size: 1.6em;
}

/* --- Takeaway Slide --- */.takeaway-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.takeaway-card {
  background: linear-gradient(135deg, #141420 0%, #1a1a2e 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 60px 80px;
  text-align: center;
  max-width: 900px;
}

.takeaway-card blockquote {
  font-size: 1.6em;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0 0 30px 0;
  background: none;
  box-shadow: none;
}

.takeaway-sub {
  font-size: 1.1em;
  color: var(--accent-teal);
  font-weight: 600;
}

/* --- Thank You Slide --- */
.thankyou-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  height: 80%;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.9em;
}

.contact-card a {
  color: var(--accent-blue);
  text-decoration: none;
}

.link-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.85em;
  transition: border-color 0.2s;
}

.link-card:hover {
  border-color: var(--accent-blue);
}

.danke-img {
  max-width: 80%;
  border-radius: var(--radius);
}

/* --- Reveal overrides --- */
.reveal .slides section .fragment.visible {
  opacity: 1;
}

.reveal .progress {
  color: var(--accent-blue);
}

.reveal .controls {
  color: var(--accent-blue);
  font-size: 6px;
}

.reveal .slide-number {
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  right: 70px;
}

/* Ensure dark background */
.reveal, body {
  background: var(--bg);
}
