/* ── Interactive Dev Terminal & Cursor FX ───────────────── */

/* ==========================================================================
   v33 Upgrade Utilities: Interactive Dev Terminal & Cursor Trail
   ========================================================================== */
.terminal-section {
  margin: 3rem 0;
}

.terminal-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.terminal-quick-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--line);
}

.terminal-quick-cmd {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-quick-cmd:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.terminal-body {
  padding: 1rem;
  min-height: 160px;
  max-height: 340px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.term-line {
  margin-bottom: 0.9rem;
}

.term-cmd-prompt {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.term-cmd-res {
  white-space: pre-wrap;
  line-height: 1.75;
  padding-left: 0.4rem;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--line);
}

.terminal-prompt-user {
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--heading);
  font-family: var(--mono);
  font-size: 0.82rem;
  outline: none;
}

.term-green { color: #22c55e; }
.term-gold { color: var(--accent); }
.term-cyan { color: #06b6d4; }
.term-red { color: #ef4444; }
.term-user { color: var(--accent); font-weight: 600; }
.term-path { color: #3b82f6; }
.term-link { color: var(--accent); text-decoration: underline; }

.cursor-trail-particle {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  animation: cursorTrailFade 0.45s ease-out forwards;
}

@keyframes cursorTrailFade {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}

