/* ================================================================
   Jose Aparicio — CV Terminal
   terminal.css
   ================================================================ */

/* ── SECCIÓN CONTENEDORA ──────────────────────────────────── */
#terminal-section {
  max-width: var(--max, 1160px);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.terminal-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 52px 0 28px;
}
.terminal-rule .rule-line {
  flex: 1;
  height: 1px;
  background: var(--text-main, #111);
  opacity: 0.2;
}
.terminal-rule .rule-label {
  font-family: var(--mono, 'Fira Code', monospace);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-main, #111);
  white-space: nowrap;
}

.terminal-intro {
  font-family: var(--mono, 'Fira Code', monospace);
  font-size: 0.75rem;
  color: var(--text-soft, #3a3a3a);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* ── TERMINAL WRAPPER ─────────────────────────────────────── */
.term-wrap {
  background: #0d1117;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono, 'Fira Code', 'Courier New', monospace);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Barra de título */
.term-bar {
  background: #1c2128;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363d;
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot-r { background: #ff5f57; }
.term-dot-y { background: #febc2e; }
.term-dot-g { background: #28c840; }
.term-bar-title {
  font-size: 12px;
  color: #6e7681;
  margin-left: 8px;
  letter-spacing: 1px;
}

/* Cuerpo de output */
.term-body {
  padding: 20px;
  min-height: 340px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #30363d #0d1117;
}
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-track { background: #0d1117; }
.term-body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

/* Líneas de output */
.t-line {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 2px;
}
.t-prompt  { color: #3742fa; }
.t-cmd     { color: #e6edf3; }
.t-dim     { color: #6e7681; }
.t-main    { color: #e6edf3; }
.t-accent  { color: #6fa8ff; }
.t-green   { color: #56d364; }
.t-yellow  { color: #e3b341; }
.t-red     { color: #f85149; }
.t-pink    { color: #d2a8ff; }
.t-cyan    { color: #39d0d8; }

/* Fila de input */
.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #21262d;
  padding: 12px 20px;
}
.term-prompt-label {
  color: #3742fa;
  font-size: 13px;
  white-space: nowrap;
  font-family: var(--mono, 'Fira Code', monospace);
  flex-shrink: 0;
}
.term-input-inner {
  display: flex;
  align-items: center;
  flex: 1;
}
.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e6edf3;
  font-family: var(--mono, 'Fira Code', 'Courier New', monospace);
  font-size: 13px;
  flex: 1;
  caret-color: transparent;
  width: 100%;
}
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #6fa8ff;
  animation: term-blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
  flex-shrink: 0;
}
@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Challenge box */
.term-challenge-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 6px 0;
}
.term-challenge-input {
  background: #0d1117;
  border: 1px solid #3742fa;
  border-radius: 4px;
  color: #e6edf3;
  font-family: var(--mono, 'Fira Code', monospace);
  font-size: 12px;
  padding: 6px 10px;
  width: 100%;
  outline: none;
  margin-top: 8px;
}
.term-challenge-input:focus {
  border-color: #6fa8ff;
}