/* ============================================================
   ENV 1 — DEVOPS · NEON LINUX TERMINAL
   ============================================================ */
#view-terminal { --accent: var(--green); }

.term-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 40px);
}

.term {
  width: min(1100px, 100%);
  height: min(760px, 100%);
  display: flex;
  flex-direction: column;
  background: rgba(2,4,3,0.92);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  box-shadow: 0 0 50px rgba(57,255,20,0.18),
              inset 0 0 60px rgba(57,255,20,0.04),
              0 30px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* ---- window chrome ---- */
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0a0f0b, #060906);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}
.lights { display: flex; gap: 8px; }
.light {
  width: 12px; height: 12px; border-radius: 50%;
  background: #222;
}
.light.r { background: var(--red);   box-shadow: 0 0 8px var(--red); }
.light.y { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.light.g { background: var(--green); box-shadow: 0 0 8px var(--green); }
.term-title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--green);
  text-shadow: 0 0 8px rgba(57,255,20,0.5);
  letter-spacing: 0.04em;
}
.term-bar .return-hub { position: static; }

/* ---- screen ---- */
.term-screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--green);
  text-shadow: 0 0 6px rgba(57,255,20,0.35);
  cursor: text;
}
.term-screen .out  { color: #b8ffb0; text-shadow: 0 0 6px rgba(57,255,20,0.3); white-space: pre-wrap; }
.term-screen .dim  { color: var(--green-deep); text-shadow: none; opacity: 0.85; white-space: pre-wrap; }
.term-screen .ok   { color: var(--green); white-space: pre-wrap; }
.term-screen .err  { color: var(--red); text-shadow: 0 0 6px rgba(255,59,92,0.4); white-space: pre-wrap; }
.term-screen .cyan { color: var(--cyan); text-shadow: 0 0 6px rgba(0,229,255,0.4); white-space: pre-wrap; }
.term-screen .mag  { color: var(--magenta); text-shadow: 0 0 6px rgba(255,43,214,0.4); white-space: pre-wrap; }
.term-screen .ph   { color: var(--amber); text-shadow: 0 0 6px rgba(255,176,0,0.5); }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.banner { color: var(--green); line-height: 1.15; }

.term-prompt-prefix { white-space: nowrap; }
.term-user { color: var(--cyan);  text-shadow: 0 0 6px rgba(0,229,255,0.4); }
.term-at   { color: var(--green-deep); }
.term-host { color: var(--magenta); text-shadow: 0 0 6px rgba(255,43,214,0.4); }
.term-path { color: #b8ffb0; }
.term-sym  { color: var(--green); margin: 0 6px 0 2px; }

/* ---- input row ---- */
.term-inputline { display: flex; align-items: baseline; }
/* hidden real input — outside layout, captures keystrokes only */
.term-input {
  position: absolute;
  left: -9999px;
  top: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  border: none;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-family: var(--mono);
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  padding: 0;
}
/* visible typed-text mirror */
.term-itext {
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  text-shadow: 0 0 6px rgba(57,255,20,0.5);
  white-space: pre;
  margin-left: 2px;
}
.term-fakecursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(57,255,20,0.8);
  margin-left: 1px;
  animation: blink 1.05s steps(1) infinite;
  transform: translateY(2px);
}
.term-hint {
  padding: 4px 20px 10px;
  font-size: 11.5px;
  color: var(--fg-faint);
  border-top: 1px dashed color-mix(in srgb, var(--green) 18%, transparent);
}
.term-hint b { color: var(--green-deep); }

@media (max-width: 860px) {
  .term-wrap { height: auto; min-height: 100vh; align-items: flex-start; }
  .term { height: auto; min-height: 500px; }
  .term-screen { overflow-y: visible; height: auto; min-height: 300px; }
}

@media (max-width: 600px) {
  .term-screen { font-size: 12.5px; }
  .term-input { font-size: 12.5px; }
  .term-itext { font-size: 12.5px; }
  .term-title { display: none; }
}
