/* ============================================================
   HAROLD HOME SYSTEM — Terminal Stylesheet
   ============================================================ */

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

:root {
  --green:     #39ff14;
  --dim-green: #1a7a09;
  --dark:      #050f05;
  --amber:     #ffb000;
  --red:       #ff3131;
  --dim:       #0d2b0d;
}

body {
  background: var(--dark);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* CRT scan lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* CRT flicker */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 255, 0, 0.015);
  animation: flicker 8s infinite;
  pointer-events: none;
  z-index: 99;
}

@keyframes flicker {
  0%, 100% { opacity: 1;   }
  92%       { opacity: 1;   }
  93%       { opacity: 0.4; }
  94%       { opacity: 1;   }
  96%       { opacity: 0.7; }
  97%       { opacity: 1;   }
}

/* Monitor shell */
.monitor {
  width: min(820px, 96vw);
  background: #000;
  border: 2px solid var(--dim-green);
  border-radius: 4px;
  box-shadow:
    0 0 40px rgba(57, 255, 20, 0.12),
    0 0 80px rgba(57, 255, 20, 0.05),
    inset 0 0 60px rgba(0, 0, 0, 0.8);
  padding: 32px 36px 40px;
  position: relative;
  max-height: 96vh;
  overflow: hidden;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dim-green);
  padding-bottom: 10px;
  margin-bottom: 20px;
  opacity: 0.6;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* Terminal scroll area */
.terminal {
  height: calc(96vh - 140px);
  overflow-y: auto;
  scrollbar-width: none;
}
.terminal::-webkit-scrollbar { display: none; }

/* Line base */
.line {
  display: block;
  opacity: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.line.visible { opacity: 1; }

/* Line color variants */
.line.dim       { color: var(--dim-green); }
.line.bright    { color: #fff; text-shadow: 0 0 8px var(--green); }
.line.amber     { color: var(--amber); }
.line.red       { color: var(--red); text-shadow: 0 0 6px var(--red); }
.line.separator { color: var(--dim-green); }

/* Layout modifiers */
.line.indent { padding-left: 20px; }
.line.gap    { margin-top: 6px; }
.line.big    { font-family: 'VT323', monospace; font-size: 22px; line-height: 1.3; }

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Vignette overlay */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  border-radius: 4px;
}
