/* ==========================================================================
   LIGHT EDITORIAL DESIGN SYSTEM — DEL AI HACKATHON 2026
   Theme: Bright Warm Paper (#fafffa) + Press Black (#121613) + Color Taxonomy
   Canvas: Light Warm White | Headlines: Deep Ink Black | Accents: Vivid Green, Orange, Lilac, Blue
   ========================================================================== */

:root {
  /* Light Theme Colors */
  --color-canvas-light: #fafffa;
  --color-surface-white: #ffffff;
  --color-surface-panel: #f2f5f1;
  --color-press-black: #121613;
  --color-typesetter-ink: #000000;
  --color-newsprint-gray: #516254;
  --color-border-hairline: #232924;

  --color-highlighter-green: #2bee4b;
  --color-orangey: #ff8709;
  --color-pink: #e056fd;
  --color-lilac: #8b5cf6;
  --color-blue: #0284c7;

  /* Typography */
  --font-mori: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Spacing */
  --page-max-width: 1380px;
  --radius-cards: 8px;
  --radius-buttons: 100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-canvas-light);
  color: var(--color-press-black);
  font-family: var(--font-mori);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Hairline Structure */
.hairline-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border-hairline);
  margin: 16px 0;
}

/* Typography Classes */
.curly-eyebrow {
  font-family: var(--font-mori);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-newsprint-gray);
  letter-spacing: -0.01em;
}

.hero-display {
  font-family: var(--font-mori);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-press-black);
  margin: 16px 0;
}

.heading-sub {
  font-family: var(--font-mori);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-press-black);
  margin-bottom: 12px;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-press-black);
}

.muted-text {
  color: var(--color-newsprint-gray);
}

/* Taxonomy Accent Colors */
.tag-green { color: #059669; font-weight: 700; }
.tag-orange { color: #d97706; font-weight: 700; }
.tag-pink { color: #c026d3; font-weight: 700; }
.tag-lilac { color: #7c3aed; font-weight: 700; }
.tag-blue { color: #0284c7; font-weight: 700; }

/* Buttons & Ghost Controls */
.btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface-white);
  color: var(--color-press-black);
  border: 1.5px solid var(--color-press-black);
  border-radius: var(--radius-buttons);
  padding: 12px 24px;
  font-family: var(--font-mori);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-ghost-pill:hover {
  background: var(--color-highlighter-green);
  transform: translateY(-2px);
}

.btn-highlighter-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-highlighter-green);
  color: var(--color-press-black);
  border: 1.5px solid var(--color-press-black);
  border-radius: var(--radius-buttons);
  padding: 12px 24px;
  font-family: var(--font-mori);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: rgba(16, 94, 29, 0.3) 1px 6px 16px 0px;
  transition: transform 0.2s ease;
}

.btn-highlighter-action:hover {
  transform: translateY(-2px);
}

/* Layout Deck Container */
.deck-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 20px 40px;
  max-width: 1380px;
  margin: 0 auto;
}

/* Top Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--color-press-black);
}

.nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-press-black);
  letter-spacing: -0.02em;
}

.nav-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-newsprint-gray);
}

/* Progress Line */
.progress-container {
  width: 100%;
  height: 3px;
  background: rgba(35, 41, 36, 0.15);
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 8%;
  background: var(--color-highlighter-green);
  transition: width 0.3s ease;
}

/* Slides Container */
.slides-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

/* Cards & Panel Layouts */
.panel-light {
  background: var(--color-surface-white);
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  padding: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* Image Embed Box */
.img-embed-box {
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: var(--color-surface-white);
}

.img-embed-box img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

/* KG Visualizer Canvas */
.kg-visualizer-wrapper {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 16px;
  height: 400px;
}

.kg-canvas-box {
  background: var(--color-surface-white);
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  position: relative;
  overflow: hidden;
}

#kgCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.kg-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.kg-tool-btn {
  background: var(--color-surface-white);
  color: var(--color-press-black);
  border: 1px solid var(--color-press-black);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-family: var(--font-mori);
  font-weight: 700;
  cursor: pointer;
}

.kg-tool-btn.active {
  background: var(--color-highlighter-green);
  color: var(--color-press-black);
}

.kg-inspect-box {
  background: var(--color-press-black);
  color: var(--color-canvas-light);
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kg-inspect-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-highlighter-green);
}

.kg-prop-list {
  font-family: monospace;
  font-size: 12px;
  color: #c8d2c8;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Tables */
.table-box {
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  overflow-x: auto;
  max-height: 360px;
}

.gsap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.gsap-table th {
  background: var(--color-press-black);
  color: var(--color-canvas-light);
  padding: 10px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-press-black);
}

.gsap-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(35, 41, 36, 0.2);
  color: var(--color-press-black);
}

/* Metric Deep Dive Cards */
.metrics-grid-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  height: 380px;
}

.chart-panel-box {
  background: var(--color-surface-white);
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card-box {
  background: var(--color-surface-white);
  border: 1px solid var(--color-press-black);
  border-radius: var(--radius-cards);
  padding: 14px;
}

.metric-card-box .score-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.metric-card-box .score-name {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.metric-card-box .score-desc {
  font-size: 11px;
  color: var(--color-newsprint-gray);
  line-height: 1.35;
}

/* Footer Controls */
.controls-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1.5px solid var(--color-press-black);
}

.slide-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-newsprint-gray);
}

/* Bottom Accent Bar */
.full-bleed-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-highlighter-green);
}
