/* ===================================
   VISUALIZATIONS.CSS
   Styles for 6 peer-reviewed sophisticated visualizations
   =================================== */

:root {
  --viz-bg: #0A0F1B;
  --viz-panel: #0f1626;
  --viz-panel-2: #121b2f;
  --viz-cyan: #00E5FF;
  --viz-green: #00FF88;
  --viz-gold: #FFB800;
  --viz-red: #FF3366;
  --viz-purple: #A855F7;
  --viz-blue: #3B82F6;
  --viz-border: rgba(0,229,255,.12);
  --viz-glow: 0 0 40px rgba(0,229,255,.15);
}

/* Visualizations Container */
.visualizations-section {
  padding: 80px 0;
  background: 
    radial-gradient(1200px 800px at 15% -10%, rgba(0,229,255,.08), transparent 55%),
    radial-gradient(1000px 600px at 85% 110%, rgba(255,184,0,.06), transparent 55%),
    var(--viz-bg);
}

.visualizations-header {
  text-align: center;
  margin-bottom: 60px;
}

.visualizations-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.visualizations-header p {
  font-size: 18px;
  color: #8B9DC3;
  max-width: 800px;
  margin: 0 auto;
}

.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.viz-card {
  background: var(--viz-panel);
  border: 2px solid var(--viz-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.viz-card:hover {
  border-color: var(--viz-cyan);
  box-shadow: var(--viz-glow);
  transform: translateY(-4px);
}

.viz-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.viz-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.3);
}

.viz-card-title {
  flex: 1;
}

.viz-card-title h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.viz-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.viz-badge.unanimous {
  background: rgba(0,255,136,.15);
  color: var(--viz-green);
  border: 1px solid rgba(0,255,136,.3);
}

.viz-badge.strong {
  background: rgba(0,229,255,.15);
  color: var(--viz-cyan);
  border: 1px solid rgba(0,229,255,.3);
}

.viz-description {
  color: #8B9DC3;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.viz-preview {
  background: var(--viz-panel-2);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.viz-demo-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(90deg, #00E5FF, #00B8D4);
  color: #071018;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.viz-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,229,255,.4);
}

/* Animated Elements */
.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--viz-green);
  box-shadow: 0 0 0 0 rgba(0,255,136,.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,255,136,.8);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0,255,136,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,255,136,0);
  }
}

.flow-line {
  stroke: var(--viz-cyan);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 3s ease-in-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Data Refinery Preview */
.refinery-pipeline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.refinery-node {
  padding: 8px 14px;
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.3);
  border-radius: 8px;
  font-size: 12px;
  color: var(--viz-cyan);
  font-weight: 600;
}

.refinery-arrow {
  color: var(--viz-cyan);
  font-size: 18px;
}

/* Mission Control Preview */
.mission-conversations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.conversation-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid;
  position: relative;
  overflow: hidden;
}

.conversation-dot.tcm { border-color: var(--viz-cyan); background: rgba(0,229,255,.1); }
.conversation-dot.ccm { border-color: var(--viz-green); background: rgba(0,255,136,.1); }
.conversation-dot.hedis { border-color: var(--viz-gold); background: rgba(255,184,0,.1); }
.conversation-dot.hrsn { border-color: var(--viz-purple); background: rgba(168,85,247,.1); }

.conversation-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

/* CCO War Room Preview */
.cco-measures {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.measure-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.measure-label {
  font-size: 11px;
  color: #8B9DC3;
  width: 60px;
}

.measure-progress {
  flex: 1;
  height: 16px;
  background: rgba(0,229,255,.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.measure-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--viz-cyan), var(--viz-green));
  border-radius: 8px;
  transition: width 1s ease;
}

.measure-value {
  font-size: 11px;
  color: var(--viz-green);
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

/* Patient Journey Preview */
.journey-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-stage {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--viz-cyan);
  box-shadow: 0 0 10px var(--viz-cyan);
}

.stage-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--viz-cyan), transparent);
}

.stage-label {
  font-size: 11px;
  color: #8B9DC3;
}

/* HRSN Transformation Preview */
.hrsn-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hrsn-before, .hrsn-after {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.hrsn-before {
  background: rgba(255,51,102,.1);
  border: 1px solid rgba(255,51,102,.3);
}

.hrsn-after {
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.3);
}

.hrsn-metric {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hrsn-before .hrsn-metric { color: var(--viz-red); }
.hrsn-after .hrsn-metric { color: var(--viz-green); }

.hrsn-label {
  font-size: 10px;
  color: #8B9DC3;
  text-transform: uppercase;
}

/* Capacity Multiplier Preview */
.capacity-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.capacity-side {
  text-align: center;
}

.capacity-value {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.capacity-before .capacity-value { color: #8B9DC3; }
.capacity-after .capacity-value { color: var(--viz-green); }

.capacity-label {
  font-size: 11px;
  color: #8B9DC3;
  margin-bottom: 12px;
}

.capacity-multiplier {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(90deg, var(--viz-gold), var(--viz-green));
  color: #000;
  font-weight: 800;
  border-radius: 6px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .viz-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-conversations {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hrsn-comparison,
  .capacity-split {
    grid-template-columns: 1fr;
  }
}

