/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --bg:          #05060a;
  --p:           #26ff7a;
  --p-bright:    #6dff9e;
  --p-dim:       rgba(38,255,122,0.6);
  --p-glow:      rgba(38,255,122,0.55);
  --p-faint:     rgba(38,255,122,0.18);
  --p-subtle:    rgba(38,255,122,0.07);
  --link:        #7ab8ff;
  --border:      rgba(255,255,255,0.07);
  --surface:     rgba(255,255,255,0.025);
  --mono:        'JetBrains Mono', monospace;
  --pixel:       'Pixelify Sans', monospace;
  --crt:         'VT323', monospace;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--p);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── CRT SCANLINES ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    rgba(0,0,0,0.055) 3px, rgba(0,0,0,0.055) 4px
  );
  pointer-events: none;
  z-index: 9001;
}

/* ── CRT VIGNETTE ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
  z-index: 9000;
}

/* ── BLINK ────────────────────────────────────────────── */
@keyframes blink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
.cursor {
  display: inline-block;
  width: 9px; height: 1em;
  background: var(--p);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  box-shadow: 0 0 6px var(--p-glow);
}

/* ── GLOW ─────────────────────────────────────────────── */
.glow    { text-shadow: 0 0 10px var(--p-glow), 0 0 28px var(--p-faint); }
.glow-sm { text-shadow: 0 0 5px var(--p-glow); }

/* ── DESKTOP SHELL ────────────────────────────────────── */
.desktop {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
}

/* ── TITLE BAR ────────────────────────────────────────── */
.title-bar {
  flex-shrink: 0;
  height: 44px;
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  position: relative;
}
.traffic-lights { display: flex; gap: 8px; align-items: center; z-index: 1; }
.tl { width: 13px; height: 13px; border-radius: 50%; cursor: default; }
.tl-red    { background: #ff5f57; box-shadow: 0 0 5px rgba(255,95,87,0.7); }
.tl-yellow { background: #febc2e; box-shadow: 0 0 5px rgba(254,188,46,0.7); }
.tl-green  { background: #28c840; box-shadow: 0 0 5px rgba(40,200,64,0.7); }
.title-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--crt); font-size: 16px;
  color: var(--p-dim); letter-spacing: 1px; white-space: nowrap;
}
.title-clock { font-family: var(--crt); font-size: 15px; color: var(--p-dim); letter-spacing: 1px; z-index: 1; }

/* ── TERMINAL BODY ────────────────────────────────────── */
.terminal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 0 48px;
  scroll-behavior: smooth;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--p-faint); border-radius: 2px; }
.t-content { max-width: 1200px; margin: 0 auto; padding: 0 36px; position: relative; }

/* ── CLI BAR ──────────────────────────────────────────── */
.cli-bar {
  flex-shrink: 0; height: 44px;
  background: rgba(0,0,0,0.45);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 18px; gap: 10px;
}
.cli-prompt { font-family: var(--crt); font-size: 16px; color: var(--p-dim); white-space: nowrap; flex-shrink: 0; letter-spacing: 0.5px; }
.cli-prompt .u { color: var(--p-bright); }
.cli-prompt .h { color: var(--p); }
.cli-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--p); font-family: var(--mono); font-size: 13.5px;
  caret-color: var(--p); letter-spacing: 0.02em;
}
.cli-input::placeholder { color: var(--p-dim); opacity: 0.75; font-style: italic; }

/* ── STATUS BAR ───────────────────────────────────────── */
.status-bar {
  flex-shrink: 0; height: 24px;
  background: var(--p-faint);
  display: flex; align-items: center;
  padding: 0 16px; gap: 0;
}
.s-item { font-family: var(--crt); font-size: 13px; color: var(--bg); letter-spacing: 1px; text-transform: uppercase; padding: 0 14px 0 0; opacity: 0.85; }
.s-item + .s-item { border-left: 1px solid rgba(0,0,0,0.25); padding-left: 14px; }
.s-right { margin-left: auto; padding-right: 0; }

/* ── SECTION DIVIDER ──────────────────────────────────── */
.div {
  display: flex; align-items: center; gap: 14px;
  margin: 44px 0 24px;
  font-family: var(--crt); font-size: 13px;
  color: var(--p-dim); letter-spacing: 3px; text-transform: uppercase;
}
.div::before, .div::after { content: ''; flex: 1; height: 1px; background: var(--p-faint); }

/* ── BODY TEXT ────────────────────────────────────────── */
.body-p { font-size: 13.5px; color: var(--p); line-height: 1.7; max-width: 64ch; }
.body-p + .body-p { margin-top: 14px; }

/* ── CMD OUTPUT ───────────────────────────────────────── */
.cmd-out { margin-top: 8px; }
.cl { font-family: var(--crt); font-size: 15px; line-height: 1.7; letter-spacing: 0.5px; }
.cl.inp { color: var(--p-dim); }
.cl.inp::before { content: 'zac@portfolio ~ $ '; }
.cl.res { color: var(--p); padding-left: 2px; }
.cl.err { color: #ff6b6b; }
.cl.blank { height: 4px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 700px) {
  .title-center { display: none; }
  .t-content { padding: 0 20px; }
}
