/* ==========================================================================
   Sanitica – Shadow AI Scenarios
   ========================================================================== */

/* -- Tabs ----------------------------------------------------------------- */

.scenario-tabs {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.scenario-tab {
  flex: 1; min-width: 140px; padding: 12px 16px; border: none; border-radius: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.3s; background: transparent; color: var(--text-muted); text-align: center;
}
.scenario-tab:hover { color: var(--text-secondary); }
.scenario-tab.active { background: var(--bg-elevated); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

/* -- Story container ------------------------------------------------------ */

.scenario-story { display: none; }
.scenario-story.active { display: block; animation: scenarioFadeIn 0.5s ease; }

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

.scenario-intro {
  text-align: center; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.scenario-intro h2 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.scenario-intro p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* -- Timeline ------------------------------------------------------------- */

.scenario-timeline { position: relative; max-width: 600px; margin: 0 auto; padding-left: 40px; }
.scenario-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px;
  background: var(--border);
}

.scenario-step {
  position: relative; margin-bottom: 32px; padding: 24px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 14px; transition: all 0.4s;
  opacity: 0; transform: translateY(16px); animation: stepReveal 0.5s ease forwards;
}
.scenario-step:nth-child(1) { animation-delay: 0.1s; }
.scenario-step:nth-child(2) { animation-delay: 0.4s; }
.scenario-step:nth-child(3) { animation-delay: 0.7s; }
.scenario-step:nth-child(4) { animation-delay: 1.0s; }
.scenario-step:nth-child(5) { animation-delay: 1.3s; }

@keyframes stepReveal {
  to { opacity: 1; transform: translateY(0); }
}

.scenario-step-dot {
  position: absolute; left: -33px; top: 28px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--border); background: var(--bg-deep);
}
.scenario-step.danger .scenario-step-dot { border-color: var(--red); background: var(--red); }
.scenario-step.safe .scenario-step-dot { border-color: var(--teal); background: var(--teal); }

.scenario-step-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 1px; margin-bottom: 8px;
}

.scenario-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.scenario-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.scenario-step.danger { border-color: rgba(232, 54, 79, 0.2); }
.scenario-step.danger h3 { color: var(--red); }
.scenario-step.safe { border-color: rgba(0, 240, 212, 0.15); background: var(--teal-faint); }
.scenario-step.safe h3 { color: var(--teal); }

.scenario-data-leaked {
  margin-top: 12px; padding: 10px 14px; background: rgba(232, 54, 79, 0.05);
  border: 1px solid rgba(232, 54, 79, 0.12); border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--red); line-height: 1.7;
}
.scenario-data-leaked strong { color: var(--red); font-weight: 600; }

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 600px) {
  .scenario-tabs { flex-direction: column; }
  .scenario-tab { min-width: auto; }
  .scenario-intro h2 { font-size: 20px; }
  .scenario-timeline { padding-left: 32px; }
  .scenario-step { padding: 18px; }
  .scenario-step-dot { left: -25px; }
}
