/* Tech stack chips — projects page “eye candy” */
.stack-strip {
  --stack-rail: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.95) 0%,
    rgba(168, 85, 247, 0.85) 45%,
    rgba(236, 72, 153, 0.75) 100%
  );
  --stack-surface: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  --stack-border: rgba(255, 255, 255, 0.1);
  --stack-label: rgba(255, 255, 255, 0.45);
  --chip-bg: rgba(30, 31, 38, 0.85);
  --chip-text: #e4e4ef;
  --chip-glow: rgba(99, 102, 241, 0.35);

  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 1.35rem 0 1.6rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stack-border);
  background: var(--stack-surface);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 12px 40px -18px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .stack-strip {
  --stack-border: rgba(0, 0, 0, 0.08);
  --stack-label: rgba(0, 0, 0, 0.45);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-text: #1a1b22;
  --chip-glow: rgba(99, 102, 241, 0.2);
  --stack-surface: linear-gradient(
    145deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.05) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 14px 36px -20px rgba(99, 102, 241, 0.35);
}

.stack-strip__rail {
  width: 5px;
  flex-shrink: 0;
  background: var(--stack-rail);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}

.stack-strip__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem 0.95rem 1.15rem;
}

.stack-strip__label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stack-label);
  background: linear-gradient(90deg, #a5b4fc, #f0abfc, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  filter: drop-shadow(0 1px 8px rgba(168, 85, 247, 0.35));
}

[data-theme="light"] .stack-strip__label {
  filter: none;
}

.stack-strip__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  align-items: center;
  min-width: 0;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--chip-text);
  border-radius: 999px;
  background:
    linear-gradient(var(--chip-bg), var(--chip-bg)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.65), rgba(168, 85, 247, 0.55), rgba(236, 72, 153, 0.5))
      border-box;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 14px -4px var(--chip-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.stack-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 20px -4px var(--chip-glow);
}

@media (prefers-reduced-motion: reduce) {
  .stack-chip {
    transition: none;
  }
  .stack-chip:hover {
    transform: none;
  }
}

/* Tuck closer to horizontal rules that follow */
.content .stack-strip + hr {
  margin-top: 0.25rem;
}
