/* ──────────────────────────────────────────
   terminal.css — Pseudo-terminal component
   ────────────────────────────────────────── */

.terminal-section {
  position: relative;
  z-index: 1;
  padding: 0 var(--sp-12) var(--sp-24);
}

.terminal {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

/* Window chrome */
.terminal__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal__dot--red    { background: #2a0e0e; border: 1px solid #4a1e1e; }
.terminal__dot--yellow { background: #1e1e0a; border: 1px solid #3a3a14; }
.terminal__dot--green  { background: #0a1e0a; border: 1px solid #143a14; }

.terminal__title {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  margin-left: var(--sp-2);
}

/* Body */
.terminal__body {
  padding: var(--sp-8) var(--sp-8);
  font-size: 12px;
  line-height: 2;
}

.terminal__line { display: block; }

.t-prompt { color: var(--color-accent); }
.t-cmd    { color: var(--color-text); }
.t-out    { color: var(--color-text-muted); }
.t-ok     { color: #3d8f5f; }
.t-warn   { color: #7a8020; }
.t-dim    { color: var(--color-text-dim); }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: cursorBlink 1.1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
  .terminal-section {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
    padding-bottom: var(--sp-16);
  }

  .terminal__body { font-size: 11px; padding: var(--sp-6); }
}
