/* ═══════════════════════════════════════════════════════════
   TERMINAL NOIR — Cybersecurity Presentation Theme
   A professional hacker aesthetic for security conferences
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Core palette - deep blacks with electric accents */
  --bg-primary: #05080f;
  --bg-secondary: #0a0f1a;
  --bg-card: #0d1420;
  --bg-code: #080c14;
  --surface: #111827;

  /* Text hierarchy */
  --text-primary: #e8edf5;
  --text-secondary: #8b9bb4;
  --text-muted: #4a5568;

  /* Accent colors - electric cyber palette */
  --cyan: #00f5d4;
  --cyan-dim: rgba(0, 245, 212, 0.08);
  --cyan-glow: rgba(0, 245, 212, 0.15);
  --red: #ff3860;
  --red-dim: rgba(255, 56, 96, 0.1);
  --red-glow: rgba(255, 56, 96, 0.2);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.08);
  --green-glow: rgba(0, 255, 136, 0.15);
  --amber: #ffbe0b;
  --amber-dim: rgba(255, 190, 11, 0.08);
  --blue: #3a86ff;
  --blue-dim: rgba(58, 134, 255, 0.1);
  --purple: #9d4edd;

  /* Borders and lines */
  --border: rgba(0, 245, 212, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-display: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Accent override for framework */
  --accent: var(--cyan);
  --accent-dim: rgba(0, 245, 212, 0.15);
  --accent-glow: rgba(0, 245, 212, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL OVERRIDES
   ═══════════════════════════════════════════════════════════ */

body {
  background: var(--bg-primary);
  font-family: var(--font-body);
}

/* Scanline overlay effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* Enhanced grid background */
.bg-grid {
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Corner decorations for slides */
.slide::before,
.slide::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cyan);
  opacity: 0.3;
  pointer-events: none;
}
.slide::before {
  top: 40px;
  left: 40px;
  border-right: none;
  border-bottom: none;
}
.slide::after {
  bottom: 40px;
  right: 40px;
  border-left: none;
  border-top: none;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--cyan) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
}

p,
li {
  font-family: var(--font-body);
  font-weight: 400;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--cyan);
  border: 1px solid var(--border);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   COLOR UTILITIES
   ═══════════════════════════════════════════════════════════ */

.text-red {
  color: var(--red);
}
.text-green {
  color: var(--green);
}
.text-amber {
  color: var(--amber);
}
.text-blue {
  color: var(--blue);
}
.text-cyan {
  color: var(--cyan);
}
.text-muted {
  color: var(--text-muted);
}
.accent {
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   SECTION LABEL - Cyber Terminal Style
   ═══════════════════════════════════════════════════════════ */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.section-label::before {
  content: "▸";
  font-size: 1em;
  animation: blink 1s step-end infinite;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  max-width: 200px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   ATTACK STEP CALLOUTS
   ═══════════════════════════════════════════════════════════ */

.attack-step {
  background: linear-gradient(
    135deg,
    var(--red-dim) 0%,
    transparent 100%
  );
  border-radius: 0 8px 8px 0;
  padding: 0.8em 1.4em;
  margin: 0.5em 0;
  font-size: 1.15rem;
  border-left: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

.attack-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.attack-step:hover::before {
  opacity: 1;
}

.attack-step .step-num {
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 0.6em;
  font-size: 1.35em;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE TYPE ACCENTS - Glowing Borders
   ═══════════════════════════════════════════════════════════ */

.slide-vuln {
  border-left: 4px solid var(--red) !important;
  padding-left: 2.5rem !important;
  box-shadow: inset 4px 0 20px -10px var(--red);
}

.slide-vuln::before {
  border-color: var(--red) !important;
  opacity: 0.4 !important;
}

.slide-fix {
  border-left: 4px solid var(--green) !important;
  padding-left: 2.5rem !important;
  box-shadow: inset 4px 0 20px -10px var(--green);
}

.slide-fix::before {
  border-color: var(--green) !important;
  opacity: 0.4 !important;
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON GRID
   ═══════════════════════════════════════════════════════════ */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.col {
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.col-bad {
  background: linear-gradient(
    180deg,
    var(--red-dim) 0%,
    var(--bg-card) 100%
  );
  border: 1px solid rgba(255, 56, 96, 0.2);
}

.col-bad::before {
  background: linear-gradient(90deg, var(--red), transparent);
}

.col-good {
  background: linear-gradient(
    180deg,
    var(--green-dim) 0%,
    var(--bg-card) 100%
  );
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.col-good::before {
  background: linear-gradient(90deg, var(--green), transparent);
}

.col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.8em 0;
}

.col ul {
  font-size: 0.9rem;
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CARD GRID - Data Breach Aesthetic
   ═══════════════════════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.vuln-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.vuln-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

.vuln-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle at top right,
    var(--red-dim),
    transparent
  );
  pointer-events: none;
}

.vuln-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -10px var(--red-dim);
}

.vuln-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5em 0;
  color: var(--red);
}

.vuln-card p {
  font-size: 0.85rem;
  margin: 0 0 0.5em 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.vuln-card .card-commit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.5em;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5em;
}

/* ═══════════════════════════════════════════════════════════
   CODE BLOCKS - Terminal Style
   ═══════════════════════════════════════════════════════════ */

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4em 1.8em;
  margin: 1em 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
}

.code-block::before {
  content: "●  ●  ●";
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
  opacity: 0.5;
}

.code-block {
  padding-top: 2.5em;
}

.code-block .comment {
  color: #5c6773;
  font-style: italic;
}
.code-block .keyword {
  color: var(--red);
}
.code-block .string {
  color: var(--green);
}
.code-block .func {
  color: var(--cyan);
}
.code-block .attr {
  color: var(--blue);
}
.code-block .value {
  color: var(--amber);
}
.code-block .type {
  color: var(--purple);
}

/* ═══════════════════════════════════════════════════════════
   TODO CALLOUTS
   ═══════════════════════════════════════════════════════════ */

.todo {
  background: linear-gradient(
    135deg,
    var(--amber-dim) 0%,
    transparent 100%
  );
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1.2rem;
  font-size: 0.8rem;
  color: var(--amber);
  font-family: var(--font-mono);
  margin: 1.2rem 0;
}

.todo::before {
  content: "◆ TODO: ";
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   DEMO PLACEHOLDER
   ═══════════════════════════════════════════════════════════ */

.demo-placeholder {
  border: 2px solid var(--amber);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--amber);
  background:
    linear-gradient(135deg, var(--amber-dim) 0%, transparent 50%),
    var(--bg-card);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.demo-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255, 190, 11, 0.03) 10px,
    rgba(255, 190, 11, 0.03) 20px
  );
  pointer-events: none;
}

.demo-placeholder h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  position: relative;
}

.demo-placeholder p {
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   SVG DIAGRAMS
   ═══════════════════════════════════════════════════════════ */

.diagram-svg {
  margin: 1.5rem auto;
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.1));
}

/* ═══════════════════════════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════════════════════════ */

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding-left: 2em;
  position: relative;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.checklist li::before {
  content: "◻";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 1.35em;
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */

.slide table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.slide table th {
  background: var(--bg-card);
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 2px solid var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.slide table td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.slide table tr:hover td {
  background: var(--bg-card);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE STYLING
   ═══════════════════════════════════════════════════════════ */

.slide img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   TITLE SLIDE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

.title-slide h1 {
  font-size: 100px;
  line-height: 1.05;
}

.title-slide .subtitle {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.title-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.title-meta span {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SECTION SLIDE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

.section-slide {
  background:
    radial-gradient(
      ellipse at 30% 50%,
      var(--cyan-dim) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.section-slide .section-number {
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 900;
  color: var(--cyan);
  opacity: 0.08;
  position: absolute;
  top: 80px;
  right: 100px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-slide h2 {
  font-size: 72px;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.section-slide h2::after {
  display: none;
}

.section-slide .subtitle {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--cyan);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR & COUNTER
   ═══════════════════════════════════════════════════════════ */

.progress-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 10px var(--cyan);
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   BLOCKQUOTES
   ═══════════════════════════════════════════════════════════ */

blockquote {
  border-left: 3px solid var(--cyan);
  margin: 0.6em 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  background: linear-gradient(90deg, var(--cyan-dim), transparent);
  padding: 0.8rem 1.2rem;
  border-radius: 0 8px 8px 0;
}

/* ═══════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════ */

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}
