/* ==========================================================================
   AOLE — Atlantis Open Learning Experience
   Shared design tokens + components
   ========================================================================== */

:root {
  /* Brand */
  --au-red: #ea1c24;
  --au-red-dark: #b9151c;
  --au-red-light: #fde8e9;
  --au-navy: #0b1a2d;
  --au-navy-light: #152b47;

  /* Health vertical (this workshop) */
  --health: #1f6b3a;
  --health-dark: #134d28;
  --health-light: #e1f0e6;
  --health-ink: #0a3019;

  /* Data vertical (analytics, finance, executive) — deep amber */
  --data: #b45309;
  --data-dark: #92400e;
  --data-light: #fef3c7;
  --data-ink: #451a03;

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --border: #e2e8f0;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all .25s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: #f1f5f9;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  z-index: 0;
}

/* Ambient background blobs — signature AOLE touch */
body::before {
  content: '';
  position: fixed;
  top: -10%; right: -10%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,28,36,.10) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%; left: -10%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,26,45,.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* Typography ============================================================== */
.serif { font-family: 'Fraunces', serif; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', monospace; }

h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 400; color: var(--au-navy); margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--au-red); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--au-red); font-weight: 600;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--au-red); }

/* MASTHEAD ================================================================ */
.masthead {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #c0111a 0%, #ea1c24 45%, #a50e15 100%);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(234,28,36,.25);
  position: relative; overflow: hidden;
  color: white;
}
.masthead::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.15));
  pointer-events: none;
}
.masthead::before {
  content: ''; position: absolute; top: -50%; left: -10%;
  width: 50%; height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none; transform: rotate(-15deg);
}
.brand { display: flex; align-items: center; gap: 1.25rem; z-index: 1; position: relative; }
.brand img { height: 38px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand-text {
  border-left: 2px solid rgba(255,255,255,.2);
  padding-left: 1.25rem;
}
.brand-text .u {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: .15rem;
}
.brand-text .name { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 500; }

.meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; letter-spacing: .1em;
  color: rgba(255,255,255,.7); text-transform: uppercase;
  z-index: 1; position: relative;
}
.meta b { color: white; font-weight: 600; }

/* Pills ==================================================================== */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: white; border: 1px solid var(--border);
  padding: .35rem .85rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; color: var(--au-navy);
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--health); }

/* Cards ==================================================================== */
.card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Buttons ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .92rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.btn-primary { background: var(--au-navy); color: white; }
.btn-primary:hover { background: var(--au-red); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--au-navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--au-red); color: var(--au-red); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--au-red); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Form fields ============================================================== */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"] {
  font-family: 'Inter', sans-serif; font-size: 1rem;
  padding: .85rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: white;
  transition: var(--transition); color: var(--text-main);
}
.field input:focus {
  outline: none; border-color: var(--au-red);
  box-shadow: 0 0 0 4px rgba(234,28,36,.10);
}
.field .hint { font-size: .8rem; color: var(--text-dim); }
.field .err { font-size: .8rem; color: var(--au-red); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.checkbox-row {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .88rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--au-red);
  margin-top: 2px; cursor: pointer;
}

/* Flash messages =========================================================== */
.flash-stack { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.flash {
  padding: .85rem 1.1rem; border-radius: var(--radius-md);
  font-size: .9rem; border: 1px solid;
  display: flex; align-items: center; gap: .65rem;
}
.flash-success { background: var(--health-light); border-color: var(--health); color: var(--health-ink); }
.flash-error   { background: var(--au-red-light); border-color: var(--au-red); color: var(--au-red-dark); }
.flash-info    { background: #e4f3fb; border-color: #3aa7e4; color: #0a3e5f; }

/* Misc helpers ============================================================ */
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.5rem 0;
}
.link { color: var(--au-red); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Scrollbar ================================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-3); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--au-red); }

/* ==========================================================================
   Workshop 04 — Executive Data Storytelling
   Module-content components: story-grid, SCQA, sowhat, audience, chart-grid,
   exercise, rewrite, slide-deck, ask, before/after.
   ========================================================================== */

/* New callout variant — Data vertical */
.callout-data {
  background: var(--data-light);
  border-left: 4px solid var(--data);
  color: var(--data-ink);
}
.callout-data .callout-eyebrow { color: var(--data-dark); }

/* Story comparison (Module 1) */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .story-grid { grid-template-columns: 1fr; } }
.story {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; position: relative;
}
.story-bad { border-left: 4px solid var(--text-dim); }
.story-good { border-left: 4px solid var(--data); background: var(--surface-2); }
.story-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; margin-bottom: .65rem;
}
.tag-bad { color: var(--text-dim); }
.tag-good { color: var(--data-dark); }
.story-text { font-size: 1rem; color: var(--text-main); line-height: 1.6; margin: 0 0 .75rem; }
.story-meta { font-size: .85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: .65rem; }

/* SCQA blocks */
.scqa-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem;
}
.scqa-block {
  display: flex; gap: 1rem; align-items: flex-start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
}
.scqa-letter {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 2.4rem; color: var(--data); line-height: .9;
  flex-shrink: 0; min-width: 2rem;
}
.scqa-block h4 {
  font-family: 'Fraunces', serif; font-size: 1.05rem;
  color: var(--au-navy); margin: 0 0 .25rem;
}

/* Exercise card — the unifying wrapper */
.exercise {
  background: linear-gradient(135deg, var(--surface-2), white);
  border: 1px solid var(--data);
  border-radius: var(--radius-xl); padding: 1.75rem;
  margin: 1.5rem 0;
  position: relative;
}
.exercise-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .75rem;
}
.exercise-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--data-dark);
  background: var(--data-light); padding: .3rem .65rem;
  border-radius: 4px;
}
.exercise-head h3 {
  font-family: 'Fraunces', serif; font-size: 1.3rem;
  color: var(--au-navy); margin: 0;
}
.exercise-given {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  margin: 1rem 0; line-height: 1.6;
}
.exercise-given strong { color: var(--au-navy); display: block; margin-bottom: .35rem; }
.exercise-given em { color: var(--text-muted); font-style: italic; }

.exercise-blanks label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--au-navy); margin: .85rem 0 .35rem;
}
.exercise-blanks textarea {
  width: 100%; min-height: 60px; padding: .65rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif; font-size: .95rem;
  color: var(--text-main); resize: vertical;
  transition: var(--transition);
}
.exercise-blanks textarea:focus { outline: none; border-color: var(--data); box-shadow: 0 0 0 3px var(--data-light); }

.exercise-answer {
  display: none; margin-top: 1.25rem; padding: 1.25rem;
  background: var(--health-light); border: 1px solid var(--health);
  border-radius: var(--radius-md); line-height: 1.65;
}
.exercise-answer.shown { display: block; animation: ex-pop .25s ease-out; }
.exercise-answer p { margin: .5rem 0; color: var(--health-ink); }
.exercise-answer strong { color: var(--health-dark); }
@keyframes ex-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Match-the-audience + chart-pick options (Modules 2 & 3) */
.match-q, .chart-pick {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.match-q p, .chart-pick p { margin: 0 0 .75rem; color: var(--text-main); line-height: 1.5; }
.match-opts, .chart-pick-opts {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.match-opt, .chart-pick-opt {
  flex: 1; min-width: 110px; padding: .65rem .85rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--text-main);
  transition: var(--transition);
}
.match-opt:hover, .chart-pick-opt:hover {
  border-color: var(--data); background: white;
}
.match-q.answered .match-opt, .chart-pick.answered .chart-pick-opt {
  cursor: default; pointer-events: none;
}
.opt-correct {
  background: var(--health-light) !important; border-color: var(--health) !important;
  color: var(--health-ink) !important;
}
.opt-wrong {
  background: var(--au-red-light) !important; border-color: var(--au-red) !important;
  color: var(--au-red-dark) !important;
}

/* Rewrite exercise (Module 4) */
.rewrite-q {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.rewrite-bad {
  font-family: 'JetBrains Mono', monospace; font-size: .9rem;
  color: var(--text-dim); margin-bottom: .65rem;
  padding: .65rem .85rem; background: var(--surface-3); border-radius: var(--radius-sm);
}
.rewrite-q textarea {
  width: 100%; min-height: 56px; padding: .65rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif; font-size: .95rem;
  margin-bottom: .5rem; resize: vertical;
}
.btn-sm { padding: .35rem .85rem; font-size: .8rem; }
.rewrite-good {
  display: none; margin-top: .65rem; padding: .75rem 1rem;
  background: var(--health-light); border: 1px solid var(--health);
  border-radius: var(--radius-sm); color: var(--health-ink);
  font-size: .92rem; line-height: 1.55;
}
.rewrite-q.revealed .rewrite-good { display: block; animation: ex-pop .25s ease-out; }
.rewrite-q.revealed button { opacity: .5; pointer-events: none; }

/* "So what" chain (Module 2) */
.sowhat {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
}
.sowhat-line {
  padding: .65rem 0; border-bottom: 1px dashed var(--border);
  display: flex; gap: .85rem; align-items: center; flex-wrap: wrap;
  font-size: .95rem;
}
.sowhat-line:last-child { border-bottom: none; }
.sowhat-q {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.4rem; color: var(--data); flex-shrink: 0;
  min-width: 1.5rem;
}
.sowhat-arrow {
  color: var(--text-dim); font-size: .85rem; margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}

/* Audience grid (Module 2) */
.audience-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.audience {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  border-top: 4px solid var(--data);
}
.audience-icon { font-size: 2rem; margin-bottom: .65rem; }
.audience h3 {
  font-family: 'Fraunces', serif; font-size: 1.15rem;
  color: var(--au-navy); margin: 0 0 .5rem;
}
.muted-sm { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin: .5rem 0 0; }

/* Chart grid (Module 3) */
.chart-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.chart-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: var(--transition);
}
.chart-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--data); }
.chart-card-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.chart-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--data-dark); margin-bottom: .35rem;
}
.chart-card h3 {
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  color: var(--au-navy); margin: 0 0 .35rem;
}

/* Retire list (Module 3) */
.retire-list { display: flex; flex-direction: column; gap: .65rem; }
.retire {
  display: flex; gap: 1rem; align-items: flex-start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  border-left: 4px solid var(--au-red);
}
.retire-icon { font-size: 1.4rem; flex-shrink: 0; }
.retire h4 { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--au-navy); margin: 0 0 .25rem; }

/* Six rules (Module 4) */
.rules-list { display: flex; flex-direction: column; gap: .65rem; }
.rule-row {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
}
.rule-num {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 2.2rem; color: var(--data); line-height: 1;
  min-width: 2rem; flex-shrink: 0;
}
.rule-row h4 { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--au-navy); margin: 0 0 .25rem; }

/* Before/after panels (Module 4) */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .before-after { grid-template-columns: 1fr; } }
.ba-side {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
}
.ba-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; margin-bottom: .75rem;
}
.ba-points { padding-left: 1.25rem; color: var(--text-muted); line-height: 1.8; margin: 0; }
.ba-points li { margin-bottom: .25rem; }

/* Slide deck (Module 5) — the capstone */
.slide-deck { display: flex; flex-direction: column; gap: 1.25rem; }
.slide {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.slide-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--data-dark); margin-bottom: .65rem;
}
.slide-title {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.6rem;
  color: var(--au-navy); line-height: 1.2; margin: 0 0 1.25rem;
}
.slide-title em { font-style: italic; color: var(--data); }
.slide-caption {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  color: var(--text-dim); margin-top: 1rem;
}
.chart-host {
  position: relative; height: 320px; width: 100%;
  background: var(--surface-2); border-radius: var(--radius-md);
  padding: 1rem;
}

/* Final ask grid (Module 5 — slide 5) */
.ask-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.ask {
  background: var(--data-light); border: 1px solid var(--data);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center;
}
.ask-num {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 3rem; color: var(--data-dark); line-height: 1; margin-bottom: .5rem;
}
.ask p { color: var(--data-ink); margin: 0; font-size: .92rem; line-height: 1.5; }
