/* ===============================================
   DEADWEB :: DEDSEC ALERT INTERFACE
   White / Red / Green Broadcast Theme
   =============================================== */

:root {
  --bg: #050607;
  --panel: #0b0d10;
  --fg: #f2f2f2;
  --green: #00ff5a;
  --red: #ff2b2b;
  --dim: #9aa0a6;
  --border: rgba(0,255,90,0.45);
}

* {
  box-sizing: border-box;
}

/* BASE */
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, #0c0f13 0%, var(--bg) 65%);
  color: var(--fg);
  font-family: Courier, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.55;
}

/* MAIN FRAME */
#crt {
  position: relative;
  max-width: 980px;
  margin: 32px auto;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(11,13,16,0.96), rgba(5,6,7,0.96));
  border: 2px solid var(--border);
  box-shadow:
    0 0 26px rgba(0,255,90,0.22),
    inset 0 0 50px rgba(255,43,43,0.06);
}

/* ALERT TAG */
#crt::before {
  content: "UNAUTHORIZED ACCESS DETECTED";
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  letter-spacing: 1px;
}

/* HEADER */
.banner {
  color: var(--fg);
  white-space: pre;
  line-height: 1.05;
  text-shadow:
    0 0 6px rgba(255,255,255,0.7),
    0 0 14px rgba(255,43,43,0.25);
}

.subtitle {
  margin-top: 8px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

/* TERMINAL */
.terminal {
  margin-top: 28px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25));
  border-left: 4px solid var(--green);
  box-shadow: inset 0 0 18px rgba(0,255,90,0.18);
}

/* PROMPT */
.prompt {
  color: var(--green);
}

.path {
  color: var(--fg);
}

.output {
  margin-left: 22px;
  color: var(--fg);
}

ul.output {
  list-style: none;
  padding-left: 22px;
}

/* NAV */
nav {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px dashed rgba(255,43,43,0.6);
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-right: 22px;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
}

nav a::before {
  content: "<";
  color: var(--green);
}

nav a::after {
  content: ">";
  color: var(--green);
}

nav a:hover {
  color: var(--red);
  text-shadow: 0 0 6px rgba(255,43,43,0.85);
}

/* FOOTER */
footer {
  margin-top: 44px;
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===============================================
   EFFECTS
   =============================================== */

/* SCANLINES */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
  z-index: 9999;
}

/* FLICKER */
@keyframes flicker {
  0% { opacity: 1; }
  96% { opacity: 1; }
  97% { opacity: 0.85; }
  98% { opacity: 1; }
  100% { opacity: 0.92; }
}

#crt {
  animation: flicker 6s infinite;
}

/* SELECTION */
::selection {
  background: var(--red);
  color: white;
}
