/* ============================================
   t3rm.css — Terminal Styles
   Terminal content area, prompt, blinking cursor,
   and CRT scanline overlay effect
   ============================================ */

/* ---------- Terminal content area ---------- */
/* Scrollable area inside the window below the title bar */
.terminal {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  scroll-behavior: smooth;
  border-top: 1px solid #333;
  position: relative;
  user-select: text;
}

/* Allow text selection inside terminal (override window's user-select: none) */
.terminal * {
  user-select: text;
}

/* Terminal output container — pre-wrap for command output formatting */
.terminal-content {
  white-space: pre-wrap;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
}

/* ---------- Command prompt ---------- */
/* "root@cha:~#" prompt line — hidden until boot sequence completes */
.prompt {
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-top: 8px;
  visibility: hidden;
}

/* ---------- Blinking block cursor ---------- */
.cursor {
  width: 10px;
  height: 1em;
  background-color: #33ff33;
  margin-left: 5px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- CRT Scanline overlay ---------- */
/* Repeating horizontal lines across the entire viewport for retro CRT feel */
.desktop-view::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
}
