/* ============================================================
   DEVOBIN — Home page styles (assets/css/pages/home.css)
   ============================================================ */

/* ---------- Interactive terminal ---------- */
.terminal-shell {
  border-radius: 1.1rem;
  background: #131210;
  border: 1px solid rgb(255 255 255 / 0.09);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgb(255 255 255 / 0.05);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}
.terminal-shell.typing {
  box-shadow: var(--shadow-pop), 0 0 0 1px rgb(245 158 11 / 0.07), 0 0 44px -10px rgb(245 158 11 / 0.22);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1.1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), transparent);
  direction: ltr;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.terminal-sub {
  color: #a8a29e;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
}
.terminal-title {
  color: #e7e5e4;
  font-weight: 600;
}
.terminal-dots {
  display: flex;
  gap: 0.35rem;
  margin-inline-start: auto;
}
.terminal-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
}
.terminal-dots span:nth-child(1) { background: #f87171; }
.terminal-dots span:nth-child(2) { background: #fbbf24; }
.terminal-dots span:nth-child(3) { background: #34d399; }

/* All lines stay in the DOM (constant height → no clipping, no layout
   shift). Un-revealed lines are visibility-hidden, not removed. */
.terminal-screen {
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 1.1rem 1.25rem;
  color: #d6d3d1;
}
@media (max-width: 480px) {
  .terminal-screen {
    font-size: 0.72rem;
    line-height: 1.65;
    padding: 0.95rem 1.05rem;
  }
}

.t-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: pre;
}
.t-line.pending,
.t-out.pending { visibility: hidden; }
.t-prompt { color: #86efac; font-weight: 600; }
.t-cmd { color: #e7e5e4; }
.t-out {
  color: #a8a29e;
  white-space: pre;
  animation: t-in 0.22s ease both;
}
.t-ok { color: #86efac; }
.t-tech { color: #fbbf24; }
.t-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: #f59e0b;
  vertical-align: text-bottom;
  animation: cursor-blink 1.1s steps(2) infinite;
}
@keyframes t-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Typewriter (hero role line) ---------- */
.terminal-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: #f59e0b;
  vertical-align: text-bottom;
  animation: cursor-blink 1.1s steps(2) infinite;
}
@keyframes cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }