/* reactbits.css - monochrome ReactBits-style effects (ShinyText, SpotlightCard, BlurText) */

/* ShinyText: light sweep across text */
[data-rb="shiny"] {
  background: linear-gradient(110deg, #6b6b6b 35%, #fff 50%, #6b6b6b 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rb-shiny 3.5s linear infinite;
}
@keyframes rb-shiny {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* SpotlightCard: radial glow follows the pointer via --mx / --my */
[data-rb="spotlight"] {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease;
}
[data-rb="spotlight"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.08), transparent 70%);
}
[data-rb="spotlight"]:hover { border-color: rgba(255, 255, 255, 0.4); }
[data-rb="spotlight"]:hover::before { opacity: 1; }

/* CountUp: keep digits from jittering while counting */
[data-rb="countup"] { font-variant-numeric: tabular-nums; }

/* BlurText: per-word reveal (class added by JS after splitting) */
.rb-blur span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.rb-blur.is-in span {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Particles: canvas fills its (positioned) parent; JS sets parent to relative */
canvas[data-rb="particles"] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-rb="shiny"] {
    animation: none;
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
  }
  [data-rb="spotlight"],
  [data-rb="spotlight"]::before { transition: none; }
  .rb-blur span {
    transition: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Smooth fade and slide up for panels, drawers, or modal features */
@keyframes featureSlideUp {
  0% { opacity: 0; transform: translateY(16px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ring glow for live status badges and active agent steps.
   Named pulseRing because index.html already defines a different pulseGlow. */
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.feature-panel-enter,
.tab-pane.active {
  animation: featureSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.status-pill,
.pipeline-step-item.active {
  animation: pulseRing 2s ease-in-out infinite;
}

.view-transition {
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.interactive-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.interactive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .feature-panel-enter,
  .tab-pane.active,
  .status-pill,
  .pipeline-step-item.active { animation: none; }
  .interactive-card,
  .view-transition { transition: none; }
  .interactive-card:hover { transform: none; }
}
/* --- Glassmorphism Paneling & Sleek Scrollbars --- */
.panel-glass {
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Custom minimal scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* --- Interactive Graph Node Glow Animations --- */
@keyframes blast-pulse {
  0% {
    filter: drop-shadow(0 0 2px #ef4444);
  }
  50% {
    filter: drop-shadow(0 0 12px #dc2626);
  }
  100% {
    filter: drop-shadow(0 0 2px #ef4444);
  }
}

.node-triaged {
  animation: blast-pulse 2s infinite ease-in-out;
}

/* --- Agent Message Badges & Step Accordions --- */
.agent-badge-triage {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-badge-remediation {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Collapsible Cypher / Tool Step details */
details.tool-call {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin: 8px 0;
  overflow: hidden;
  font-family: monospace;
  font-size: 0.78rem;
}
details.tool-call summary {
  padding: 6px 10px;
  cursor: pointer;
  color: #94a3b8;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
}
details.tool-call summary:hover {
  color: #f1f5f9;
}
details.tool-call pre {
  margin: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #38bdf8;
  overflow-x: auto;
}
