/* SynapFuse — Calibration Insight Moments */

/* -----------------------------------------------------------------------
   Insight card stack container
   ----------------------------------------------------------------------- */

.ci-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sf-space-sm);
  width: 100%;
  max-width: 520px;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   Insight card
   ----------------------------------------------------------------------- */

.ci-card {
  display: flex;
  align-items: stretch;
  background: var(--sf-glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sf-radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  pointer-events: auto;
  animation: ci-fade-in 0.4s var(--sf-ease-out) both,
             ci-glow-pulse 0.6s 0.4s ease-out both;
}

/* -----------------------------------------------------------------------
   Left accent bar
   ----------------------------------------------------------------------- */

.ci-bar {
  width: 4px;
  min-height: 100%;
  border-radius: 2px 0 0 2px;
  flex-shrink: 0;
}

/* Type-specific bar colors */
.ci-card--pattern .ci-bar {
  background-color: #A78BFA;
}

.ci-card--belief-signal .ci-bar {
  background-color: var(--sf-alignment);
}

.ci-card--trajectory-hint .ci-bar {
  background-color: #34D399;
}

/* -----------------------------------------------------------------------
   Content area
   ----------------------------------------------------------------------- */

.ci-content {
  flex: 1;
  padding: var(--sf-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--sf-space-xs);
}

.ci-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ci-type-label {
  font-family: var(--sf-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-text-muted);
}

.ci-confidence {
  font-family: var(--sf-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--sf-text-dim);
}

.ci-text {
  font-family: var(--sf-font-primary);
  font-size: var(--sf-text-sm);
  color: var(--sf-text);
  line-height: 1.5;
  margin: 0;
}

/* -----------------------------------------------------------------------
   Type-specific glow accents
   ----------------------------------------------------------------------- */

.ci-card--pattern {
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.08);
}

.ci-card--belief-signal {
  box-shadow: 0 0 16px rgba(79, 227, 193, 0.08);
}

.ci-card--trajectory-hint {
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.08);
}

/* -----------------------------------------------------------------------
   Animation states
   ----------------------------------------------------------------------- */

.ci-card--entering {
  animation: ci-fade-in 0.4s var(--sf-ease-out) both,
             ci-glow-pulse 0.6s 0.4s ease-out both;
}

.ci-card--exiting {
  animation: ci-fade-out 0.4s var(--sf-ease-out) both;
}

/* -----------------------------------------------------------------------
   Keyframes
   ----------------------------------------------------------------------- */

@keyframes ci-fade-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ci-glow-pulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes ci-fade-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

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

@media (max-width: 768px) {
  .ci-stack {
    max-width: 100%;
    padding: 0 var(--sf-space-md);
  }

  .ci-card {
    border-radius: var(--sf-radius-sm);
  }
}
