/* ── RETRO TERMINAL STYLESHEET ── */
/* DOS/CRT Terminal — Fallout-style monitor frame — The ICT Hub (C) 1992 */

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

:root {
  --green:     #33ff33;
  --green-dim: #1a7a1a;
  --green-dk:  #0a3d0a;
  --amber:     #ffb000;
  --amber-dim: #996a00;
  --white-g:   #ccffcc;
  --bg:        #000;
  --bg2:       #010d01;
}

html {
  background: #050505;
  scroll-behavior: auto;
}

/* ── DARK ROOM ── */
body {
  background: #050505;
  color: var(--green);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 5rem;
  overflow-x: hidden;
}

/* ── MONITOR BEZEL ── */
.monitor {
  width: 100%;
  max-width: 120ch;
  background: linear-gradient(180deg, #1d1d1d 0%, #121212 60%, #0e0e0e 100%);
  border-radius: 18px 18px 10px 10px;
  border: 1px solid #2a2a2a;
  padding: 22px 22px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 0 1px #080808,
    0 40px 100px rgba(0,0,0,0.98),
    0 10px 30px rgba(0,0,0,0.6),
    0 0 80px rgba(51,255,51,0.03);
}

/* Camera dot above screen */
.monitor::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: #0d0d0d;
  border-radius: 50%;
  border: 1px solid #282828;
  margin: 0 auto 14px;
  box-shadow: 0 0 5px rgba(51,255,51,0.12), inset 0 0 3px rgba(0,0,0,0.7);
}

/* Monitor bottom label */
.monitor-base {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.6em;
  color: #2c2c2c;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  user-select: none;
}

/* Power LED */
.monitor-led {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green-dim);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--green-dim);
  animation: led-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes led-pulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 3px var(--green-dk); }
  50%       { opacity: 1;   box-shadow: 0 0 8px var(--green), 0 0 16px rgba(51,255,51,0.25); }
}

/* ── CRT SCREEN GLASS ── */
.screen {
  position: relative;
  background: #010901;
  border-radius: 6px;
  padding: 1.8rem 2.2rem 3.5rem;
  min-height: 60vh;
  overflow: hidden;
  box-shadow:
    inset 0 0 90px rgba(51,255,51,0.05),
    inset 0 0 6px  rgba(51,255,51,0.1),
    0 0 30px rgba(51,255,51,0.08);
}

/* ── CRT EFFECTS ── */

/* Scanlines — absolute within screen */
.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.2) 3px,
    rgba(0,0,0,0.2) 4px
  );
  pointer-events: none;
  z-index: 200;
  border-radius: inherit;
}

/* Vignette — absolute within screen */
.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  z-index: 199;
  border-radius: inherit;
}

/* Screen flicker */
@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98%            { opacity: 0.94; }
  99%            { opacity: 0.97; }
}
.screen { animation: flicker 8s infinite; }

/* ── MATRIX CANVAS ── */
#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

/* All screen content above canvas */
.screen > *:not(#matrix-canvas) {
  position: relative;
  z-index: 5;
}

/* ── TEXT EFFECTS ── */
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1s step-end infinite; }

.glow    { text-shadow: 0 0 6px var(--green), 0 0 14px rgba(51,255,51,0.25); }
.amber   { color: var(--amber); text-shadow: 0 0 6px rgba(255,176,0,0.5); }
.dim     { color: var(--green-dim); }
.hl      { color: var(--white-g); }
.cursor::after { content: '█'; animation: blink 1s step-end infinite; }

/* ── PROMPT BAR ── */
.prompt-bar {
  color: var(--green-dim);
  margin-bottom: 0.25rem;
  font-size: 0.85em;
}
.prompt-bar .path { color: var(--amber); }
.prompt-bar .cmd  { color: var(--green); }

/* ── HEADER BOX ── */
.header-box {
  border: 1px solid var(--green-dim);
  padding: 0.45rem 0.85rem;
  margin: 0.25rem 0 1.75rem;
  background: var(--bg2);
}
.header-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--white-g);
  font-size: 0.88em;
}
.header-sep {
  border-top: 1px solid var(--green-dk);
  margin: 0.3rem 0;
}
.header-bottom { font-size: 0.88em; }

/* ── SECTION TITLES ── */
.sec-title {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.6rem 0 0.2rem;
  font-size: 0.9em;
}
.sec-divider {
  border: none;
  border-top: 1px solid var(--green-dim);
  margin-bottom: 0.75rem;
}

/* ── BODY TEXT ── */
.body-text {
  color: var(--white-g);
  max-width: 100ch;
  line-height: 1.7;
  font-size: 0.95em;
  margin-bottom: 0.5rem;
}

/* ── PRICE TABLE ── */
.price-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 80ch;
  margin: 0.75rem 0 0.4rem;
}
.price-table th,
.price-table td {
  border: 1px solid var(--green-dim);
  padding: 0.3rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}
.price-table th {
  color: var(--amber);
  background: var(--bg2);
  font-weight: normal;
}
.price-table .nlg { color: var(--green); }
.price-table .eur { color: var(--green-dim); font-size: 0.85em; }
.price-note {
  font-size: 0.78em;
  color: var(--green-dim);
  margin-top: 0.3rem;
}

/* ── DOS NAV ── */
.dos-nav {
  border-top: 1px solid var(--green-dk);
  padding-top: 0.85rem;
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  font-size: 0.85em;
}
.dos-nav a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.1s, text-shadow 0.1s;
}
.dos-nav a::before { content: '['; color: var(--green-dim); }
.dos-nav a::after  { content: ']'; color: var(--green-dim); }
.dos-nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--green);
}

/* ── STATUS BAR ── */
.status-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--green-dim);
  color: #000;
  font-size: 0.75em;
  padding: 0.2rem 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

/* ── BOOT SEQUENCE ── */
.boot-screen { padding: 1rem 0; }
.boot-line {
  color: var(--white-g);
  min-height: 1.55em;
}
.boot-line.dim-line { color: var(--green-dim); }
.boot-line.ok-line  { color: var(--green); }
.boot-line.warn     { color: var(--amber); }

.boot-logo {
  color: var(--green);
  text-shadow: 0 0 10px var(--green), 0 0 20px rgba(51,255,51,0.2);
  white-space: pre;
  font-size: 0.82em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

/* Progress bar */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
}
.progress-bar {
  display: inline-block;
  width: 24ch;
  background: var(--green-dk);
  border: 1px solid var(--green-dim);
  height: 1em;
  position: relative;
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--green);
  width: 0%;
  transition: width 0.05s;
}
.progress-pct {
  min-width: 4ch;
  text-align: right;
}

/* Main menu */
.main-menu { display: none; }
.menu-sep {
  border-top: 1px solid var(--green-dim);
  margin: 0.3rem 0;
}
.menu-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.15rem 0;
}
.menu-key {
  color: var(--amber);
  min-width: 4ch;
  text-align: right;
  flex-shrink: 0;
}
.menu-label { color: var(--white-g); }
.menu-module { color: var(--green-dim); font-size: 0.85em; }
.menu-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding: 0.1rem 0;
  transition: color 0.1s;
}
.menu-item a:hover .menu-label  { color: #fff; text-shadow: 0 0 6px var(--green); }
.menu-item a:hover .menu-module { color: var(--amber); }
.menu-input-line {
  margin-top: 0.75rem;
  color: var(--white-g);
}

/* ── ITEM LISTS ── */
.item-list {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
}
.item-list li {
  color: var(--white-g);
  padding: 0.1rem 0;
  font-size: 0.9em;
}
.item-list li::before {
  content: '> ';
  color: var(--green-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  body { font-size: 12px; padding: 0.5rem 0.5rem 4rem; }
  .monitor { padding: 12px 12px 10px; border-radius: 12px 12px 6px 6px; }
  .screen { padding: 1rem 1rem 3rem; }
  .price-table { font-size: 0.8em; }
  .boot-logo { font-size: 0.48em; }
}
