/* ===== Column Layout Graph Styles ===== */

/* Column stripes */
.column-stripe {
  pointer-events: none;
}

/* Column headers */
.column-header-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-secondary);
}

.column-header-count {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-muted);
}

/* ===== Node Cards ===== */
.node-group {
  cursor: pointer;
  opacity: 0;
}

.node-group.visible {
  animation: nodePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes nodePopIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.node-card {
  transition: filter 0.2s ease;
}

.node-accent {
  pointer-events: none;
}

.node-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  fill: var(--text-primary);
  pointer-events: none;
  user-select: none;
}

.node-severity-dot {
  pointer-events: none;
}

.node-secondary-label {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--text-muted);
  pointer-events: none;
  user-select: none;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.node-secondary-label.visible {
  opacity: 1;
}

/* ===== Connections ===== */
.link-line {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.45;
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.link-line:hover {
  stroke-width: 3;
  opacity: 0.85;
}

.link-animated {
  stroke-dasharray: 6 4;
  animation: dashFlow 1.5s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -20;
  }
}

/* Link type colors */
.link-enables { stroke: var(--accent-red); }
.link-weakens { stroke: var(--accent-amber); }
.link-contradicts { stroke: var(--accent-pink); }
.link-depends-on { stroke: var(--accent-indigo); }
.link-amplifies { stroke: var(--accent-orange); }

/* Link draw-in animation */
.link-group {
  opacity: 0;
}

.link-group.visible {
  animation: linkFadeIn 0.5s ease both;
}

@keyframes linkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Highlighted Node ===== */
.node-group.highlighted .node-card {
  stroke: var(--accent-red);
  stroke-width: 2;
  animation: highlightPulse 1.5s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.6)); }
}

/* ===== Severity dividers ===== */
.severity-divider {
  pointer-events: none;
}
