/* ============================================================
   VampireBBS — Estética terminal finales de los 80
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap');

:root {
  --green:    #00ff41;
  --green-dim:#00aa2a;
  --amber:    #ffb300;
  --amber-dim:#cc8800;
  --red:      #ff2222;
  --cyan:     #00ffff;
  --white:    #cccccc;
  --bg:       #000000;
  --bg2:      #0a0a0a;
  --border:   #003300;
}

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

html, body {
  background: var(--bg);
  color: var(--green);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

/* === SCANLINES === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  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: 9999;
}

/* === CRT VIGNETTE === */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 9998;
}

/* === WRAPPER === */
#screen {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* === HEADER / BANNER === */
#banner {
  text-align: center;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--green-dim);
  margin-bottom: 20px;
}

#banner pre {
  font-family: 'VT323', monospace;
  font-size: clamp(10px, 1.8vw, 16px);
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  line-height: 1.1;
  display: inline-block;
  text-align: left;
}

#banner .tagline {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--amber);
  text-shadow: 0 0 6px var(--amber);
  margin-top: 8px;
  letter-spacing: 3px;
}

/* === BLINK === */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
}

/* === PHOSPHOR GLOW === */
@keyframes phosphor {
  0%   { text-shadow: 0 0 4px var(--green), 0 0 8px var(--green); }
  50%  { text-shadow: 0 0 6px var(--green), 0 0 14px var(--green), 0 0 22px var(--green-dim); }
  100% { text-shadow: 0 0 4px var(--green), 0 0 8px var(--green); }
}

.glow {
  animation: phosphor 3s ease-in-out infinite;
}

/* === NAVBAR / MENU === */
#navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--green-dim);
  margin-bottom: 20px;
  background: var(--bg2);
}

#navbar a {
  color: var(--bg);
  background: var(--green-dim);
  text-decoration: none;
  padding: 6px 18px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 1px;
  border-right: 1px solid var(--bg);
  transition: background 0.1s, color 0.1s;
}

#navbar a:hover,
#navbar a.active {
  background: var(--green);
  color: var(--bg);
  text-shadow: none;
}

#navbar .key {
  color: var(--amber-dim);
  font-size: 14px;
}

/* === MAIN CONTENT AREA === */
#content {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
}

@media (max-width: 680px) {
  #content { grid-template-columns: 1fr; }
}

/* === PANEL / WINDOW === */
.panel {
  border: 1px solid var(--green-dim);
  background: var(--bg2);
  margin-bottom: 16px;
}

.panel-title {
  background: var(--green-dim);
  color: var(--bg);
  font-family: 'VT323', monospace;
  font-size: 20px;
  padding: 3px 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title span {
  color: var(--amber);
}

.panel-body {
  padding: 12px 16px;
}

/* === MOTD / WELCOME === */
#motd {
  color: var(--amber);
  text-shadow: 0 0 5px var(--amber-dim);
  font-family: 'VT323', monospace;
  font-size: 19px;
  line-height: 1.6;
}

#motd .highlight {
  color: var(--green);
  text-shadow: 0 0 5px var(--green);
}

#motd .red {
  color: var(--red);
}

/* === TYPING CURSOR === */
.cursor::after {
  content: '█';
  animation: blink 0.8s step-end infinite;
  color: var(--green);
}

/* === STATS SIDEBAR === */
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.stat-row:last-child { border-bottom: none; }

.stat-label { color: var(--green-dim); }
.stat-value { color: var(--amber); font-family: 'VT323', monospace; font-size: 17px; }

/* === LINKS === */
a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--green);
  text-shadow: 0 0 4px var(--green);
}

/* === MENU LIST === */
.bbs-menu {
  list-style: none;
}

.bbs-menu li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.bbs-menu li:last-child { border-bottom: none; }

.bbs-menu .cmd {
  color: var(--amber);
  font-family: 'VT323', monospace;
  font-size: 20px;
  min-width: 28px;
}

.bbs-menu .desc {
  color: var(--green);
  font-size: 13px;
}

/* === TICKER / SCROLLBAR === */
#ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--green-dim);
  border-bottom: 1px solid var(--green-dim);
  background: var(--bg2);
  padding: 4px 0;
  margin-bottom: 16px;
}

#ticker-inner {
  display: inline-block;
  animation: ticker-scroll 40s linear infinite;
  color: var(--amber);
  font-family: 'VT323', monospace;
  font-size: 18px;
}

@keyframes ticker-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* === FOOTER === */
#footer {
  text-align: center;
  border-top: 1px solid var(--green-dim);
  margin-top: 20px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--green-dim);
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 1px;
}

#footer .version {
  color: var(--amber-dim);
}

/* === CONNECTION BAR === */
#connbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--green-dim);
  font-family: 'VT323', monospace;
  font-size: 16px;
  margin-bottom: 6px;
}

#connbar .online { color: var(--green); }
#connbar .time   { color: var(--amber-dim); }

/* === ANSI BLOCKS === */
.ansi-art {
  font-family: 'VT323', monospace;
  font-size: 14px;
  line-height: 1.15;
  white-space: pre;
  overflow-x: auto;
}

/* === NEWS ITEM === */
.news-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  color: var(--amber-dim);
  font-size: 12px;
  font-family: 'VT323', monospace;
  font-size: 16px;
}

.news-title {
  color: var(--green);
  font-size: 14px;
  margin-top: 2px;
}

.news-title a:hover { color: var(--cyan); }

/* === HACKER ROW === */
.hacker-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}

.hacker-row:last-child { border-bottom: none; }

.hacker-handle {
  color: var(--amber);
  font-family: 'VT323', monospace;
  font-size: 22px;
  min-width: 120px;
  text-shadow: 0 0 5px var(--amber-dim);
}

.hacker-role {
  color: var(--green-dim);
  font-size: 12px;
}

.hacker-desc {
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
}

/* === INPUT PROMPT === */
.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.prompt-gt {
  color: var(--green);
  font-family: 'VT323', monospace;
  font-size: 22px;
}

.prompt-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--green-dim);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  width: 200px;
  outline: none;
  caret-color: var(--green);
}

/* === PROGRESS / LOADING BAR === */
@keyframes load-bar {
  from { width: 0; }
  to   { width: 100%; }
}

.loading-bar-wrap {
  background: var(--border);
  height: 6px;
  margin: 8px 0;
}

.loading-bar-fill {
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: load-bar 2s ease-in forwards;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--green-dim);
}

.tl-item {
  position: relative;
  padding: 6px 0 14px 20px;
}

.tl-item::before {
  content: '▶';
  position: absolute;
  left: -13px;
  color: var(--green-dim);
  font-size: 12px;
  top: 7px;
}

.tl-now::before {
  color: var(--amber);
}

.tl-year {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--amber);
  text-shadow: 0 0 4px var(--amber-dim);
  line-height: 1;
  margin-bottom: 2px;
}

.tl-now .tl-year {
  color: var(--green);
  text-shadow: 0 0 6px var(--green);
}

.tl-desc {
  font-size: 13px;
  color: var(--white);
  line-height: 1.6;
}
