/* ============================================
   INTERACTIVE CYBER KILL CHAIN VISUALIZER
   ============================================ */

/* --- Kill Chain Flow --- */
.killchain-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 40px 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,200,255,0.2) transparent;
}

.killchain-flow::-webkit-scrollbar { height: 4px; }
.killchain-flow::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.2); border-radius: 2px; }

.kc-stage {
  flex: 1;
  min-width: 130px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.kc-stage-inner {
  padding: 24px 16px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  position: relative;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.kc-stage:first-child .kc-stage-inner {
  border-radius: 12px 0 0 12px;
}

.kc-stage:last-child .kc-stage-inner {
  border-radius: 0 12px 12px 0;
}

.kc-stage-inner::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 10px solid rgba(0, 200, 255, 0.15);
  z-index: 2;
}

.kc-stage:last-child .kc-stage-inner::after {
  display: none;
}

.kc-stage.active .kc-stage-inner {
  background: rgba(0, 200, 255, 0.06);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.1);
}

.kc-stage.active .kc-stage-inner::after {
  border-left-color: var(--neon-cyan);
}

.kc-stage:hover .kc-stage-inner {
  background: rgba(0, 200, 255, 0.04);
  border-color: rgba(0, 200, 255, 0.3);
}

.kc-stage .kc-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kc-stage .kc-icon {
  font-size: 1.6rem;
  transition: var(--transition-smooth);
}

.kc-stage.active .kc-icon {
  filter: drop-shadow(0 0 10px currentColor);
  transform: scale(1.15);
}

.kc-stage .kc-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
}

/* Stage colors */
.kc-stage[data-stage="1"] .kc-icon { color: var(--neon-cyan); }
.kc-stage[data-stage="2"] .kc-icon { color: var(--neon-blue); }
.kc-stage[data-stage="3"] .kc-icon { color: var(--neon-purple); }
.kc-stage[data-stage="4"] .kc-icon { color: var(--neon-orange); }
.kc-stage[data-stage="5"] .kc-icon { color: var(--neon-red); }
.kc-stage[data-stage="6"] .kc-icon { color: var(--neon-red); }
.kc-stage[data-stage="7"] .kc-icon { color: #ff0044; }

/* --- Detail Panel --- */
.kc-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  animation: fadeSlideIn 0.4s ease;
}

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

.kc-detail-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 200, 255, 0.02);
}

.kc-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kc-detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
}

.kc-detail-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.kc-detail-body {
  padding: 28px;
}

.kc-detail-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Techniques & Defenses Grid */
.kc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kc-column h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kc-column.attacks h4 { color: var(--neon-red); }
.kc-column.defenses h4 { color: var(--neon-green); }

.kc-list {
  list-style: none;
  padding: 0;
}

.kc-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 200, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.kc-list li:last-child { border-bottom: none; }

.kc-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  margin-top: 7px;
}

.kc-column.attacks .kc-list li::before { background: var(--neon-red); }
.kc-column.defenses .kc-list li::before { background: var(--neon-green); }

/* Services Link */
.kc-services {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glow);
}

.kc-services h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kc-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kc-service-tag {
  padding: 6px 14px;
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kc-service-tag:hover {
  background: rgba(0, 200, 255, 0.12);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .killchain-flow { flex-direction: column; }
  .kc-stage-inner { border-radius: 0 !important; }
  .kc-stage-inner::after { display: none; }
  .kc-grid { grid-template-columns: 1fr; }
}
