/*
 * Framework Friday / FridayOS — Shared Deck Base Styles
 *
 * Import this in any deck's HTML to get:
 * - Brand color tokens (FF orange + FridayOS emerald)
 * - Typography scale
 * - Logo styles
 * - Atmospheric glow classes
 * - Entry animations
 * - Progress bar gradient
 * - Overview mode styling
 * - Operator Forum watermark (injected via JS)
 * - Responsive breakpoints
 *
 * Each deck only needs to define its own slide content and
 * any deck-specific overrides.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Framework Friday Brand */
  --ff-orange: #FF4F1A;
  --ff-orange-dim: rgba(255, 79, 26, 0.15);
  --ff-orange-glow: rgba(255, 79, 26, 0.12);
  --ff-ink: #0F0F0F;
  --ff-dark: #1A1A1A;
  --ff-mid: #2E2E2E;
  --ff-muted: #6E6E6E;
  --ff-subtle: #A3A3A3;

  /* FridayOS Brand */
  --fos-emerald: #10B981;
  --fos-emerald-light: #34D399;
  --fos-emerald-lighter: #6EE7B7;
  --fos-emerald-glow: rgba(16, 185, 129, 0.12);
  --fos-bg: #030303;
  --fos-elevated: #0A0A0A;
  --fos-subtle: #111111;
  --fos-text: #FAFAFA;
  --fos-text-secondary: #D4D4D4;
  --fos-text-muted: #A3A3A3;
  --fos-border: #1A1A1A;
}

/* =========================================
   REVEAL CORE
   ========================================= */

.reveal-viewport { background: var(--ff-ink); }

.reveal {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--fos-text);
}

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

.reveal .slides section {
  padding: 80px 120px;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal p, .reveal li {
  margin: 0; padding: 0; text-shadow: none;
  font-family: inherit; color: inherit;
}

/* =========================================
   OVERVIEW MODE (Escape key)
   ========================================= */

.reveal.overview .slides section {
  border: 2px solid var(--ff-mid);
  border-radius: 16px;
  background: var(--ff-ink) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}

.reveal.overview .slides section:hover {
  border-color: var(--ff-orange);
  box-shadow: 0 12px 48px rgba(255, 79, 26, 0.2);
}

.reveal.overview .slides section.fos-bg:hover {
  border-color: var(--fos-emerald);
  box-shadow: 0 12px 48px rgba(16, 185, 129, 0.2);
}

/* =========================================
   ENTRY ANIMATIONS
   ========================================= */

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes fadeGlow {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

.animate-in {
  opacity: 0;
  animation: slideUp 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-glow {
  opacity: 0;
  animation: fadeGlow 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.d1 { animation-delay: 100ms; }
.d2 { animation-delay: 200ms; }
.d3 { animation-delay: 350ms; }
.d4 { animation-delay: 450ms; }
.d5 { animation-delay: 550ms; }
.d6 { animation-delay: 650ms; }
.d7 { animation-delay: 750ms; }
.d8 { animation-delay: 850ms; }
.d9 { animation-delay: 950ms; }

section:not(.present) .animate-in,
section:not(.present) .animate-glow { animation: none; opacity: 0; }

section.present .animate-in { animation: slideUp 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
section.present .animate-glow { animation: fadeGlow 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* =========================================
   TYPOGRAPHY
   ========================================= */

.label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.label--orange { color: var(--ff-orange); text-shadow: 0 0 30px rgba(255, 79, 26, 0.25); }
.label--emerald { color: var(--fos-emerald); text-shadow: 0 0 30px rgba(16, 185, 129, 0.25); }

.headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.02;
  margin-bottom: 44px;
}

.headline--hero { font-size: clamp(80px, 9vw, 128px); }
.headline--large { font-size: clamp(64px, 7vw, 96px); }
.headline--medium { font-size: clamp(52px, 5.5vw, 80px); }
.headline--small { font-size: clamp(44px, 4.5vw, 72px); }

.headline--fos {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--fos-text);
}

/* Inline emerald OS */
.green-os { color: var(--fos-emerald); }

/* =========================================
   LOGOS
   ========================================= */

.logo {
  position: absolute;
  top: 48px;
  left: 120px;
  z-index: 10;
}

.logo--ff { height: 44px; opacity: 0.7; }
.logo--fos { height: 38px; opacity: 0.8; }

/* =========================================
   DIVIDERS
   ========================================= */

.divider {
  width: 80px;
  height: 4px;
  margin: 32px 0;
  border-radius: 2px;
}

.divider--orange {
  background: var(--ff-orange);
  box-shadow: 0 0 16px rgba(255, 79, 26, 0.6), 0 0 48px rgba(255, 79, 26, 0.3), 0 0 96px rgba(255, 79, 26, 0.1);
}

.divider--emerald {
  background: var(--fos-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6), 0 0 48px rgba(16, 185, 129, 0.3), 0 0 96px rgba(16, 185, 129, 0.1);
}

/* =========================================
   BACKGROUND CLASSES
   ========================================= */

.ff-bg { background-color: var(--ff-ink); }
.fos-bg { background-color: var(--fos-bg); }

/* =========================================
   ORANGE ATMOSPHERIC (FF slides)
   ========================================= */

.ff-atmos::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 79, 26, 0.18) 0%, rgba(255, 79, 26, 0.08) 30%, rgba(255, 79, 26, 0.02) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ff-atmos-bl::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 79, 26, 0.12) 0%, rgba(255, 79, 26, 0.04) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   EMERALD ATMOSPHERIC (FridayOS slides)
   ========================================= */

.fos-atmos::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.10) 25%, rgba(16, 185, 129, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.fos-atmos-bl::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.05) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   PROGRESS BAR
   ========================================= */

.reveal .progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--ff-orange) 0%, var(--ff-orange) 35%, var(--fos-emerald) 65%, var(--fos-emerald-light) 100%);
  transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -3px 20px rgba(255, 79, 26, 0.5), 0 -3px 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(255, 79, 26, 0.2), 0 0 40px rgba(16, 185, 129, 0.2);
}

/* =========================================
   CONTROLS
   ========================================= */

.reveal .controls { color: rgba(255, 255, 255, 0.15); }
.reveal .controls:hover { color: rgba(255, 255, 255, 0.3); }

.reveal aside.notes { display: none; }

/* =========================================
   WATERMARK
   ========================================= */

.watermark {
  position: absolute;
  bottom: 40px;
  right: 60px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  z-index: 1;
  pointer-events: none;
}

.fos-bg .watermark { color: rgba(16, 185, 129, 0.35); }

/* =========================================
   GRID MARK MINI ICONS
   ========================================= */

.gm-mini {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  opacity: 1;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 960px) {
  .reveal .slides section { padding: 56px 64px; }
  .logo { left: 64px; top: 40px; }
}

@media (max-width: 600px) {
  .reveal .slides section { padding: 36px 32px; }
  .logo { left: 32px; top: 32px; }
  .logo--ff { height: 28px !important; }
  .logo--fos { height: 24px !important; }
}
