/* ===== SHADOWFILE GLOBAL STYLES ===== */
:root {
  --bg-dark: #050505;
  --bg-panel: #0a0a0a;
  --red: #cc0000;
  --red-glow: #ff0000;
  --green: #00ff41;
  --green-dim: #00aa2a;
  --yellow: #ffcc00;
  --text: #c8c8c8;
  --text-bright: #f0f0f0;
  --border: #1a1a1a;
  --border-red: #440000;
  --font-mono: 'Share Tech Mono', monospace;
  --font-horror: 'Creepster', cursive;
  --font-display: 'Oswald', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === SCANLINES EFFECT === */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 4px
  );
}

/* === NOISE OVERLAY === */
.noise {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: noiseAnim 0.5s steps(2) infinite;
}

@keyframes noiseAnim {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(1%, 1%); }
}

/* === FOG === */
.fog-layer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(transparent, rgba(20,0,0,0.4));
}

/* === BIG DADDY CORNER === */
.big-daddy-corner {
  position: fixed;
  top: 70px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: watchPulse 3s ease-in-out infinite;
  background: rgba(5,0,0,0.85);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 8px 10px;
  max-width: 130px;
}

.eye-logo {
  font-size: 2rem;
  animation: eyeBlink 4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--red-glow));
}

.bd-text {
  font-family: var(--font-horror);
  font-size: 0.65rem;
  color: var(--red);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bd-text span {
  color: var(--yellow);
  font-size: 0.6rem;
}

@keyframes watchPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(204,0,0,0.3); }
  50% { box-shadow: 0 0 15px rgba(204,0,0,0.7); }
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* === SIDE WATCHERS === */
.side-watcher {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.side-watcher:hover { opacity: 1; }

.left-watcher { left: 5px; }
.right-watcher { right: 145px; }

.side-eye {
  font-size: 1.2rem;
  animation: eyeBlink 6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px var(--red-glow));
}

.side-text {
  font-size: 0.45rem;
  color: var(--red);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 3px;
}

/* === TOP NAV === */
.top-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 55px;
  background: rgba(5,0,0,0.95);
  border-bottom: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 900;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-horror);
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--red-glow);
}

.nav-logo a {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.7rem;
  color: var(--text);
  letter-spacing: 1px;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-logout button {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-logout button:hover {
  background: var(--red);
  color: #fff;
}

/* === MOBILE NAV === */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 950;
}

.hamburger {
  background: rgba(5,0,0,0.95);
  border: none;
  border-bottom: 1px solid var(--border-red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: rgba(5,0,0,0.98);
  border-bottom: 2px solid var(--red);
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 1px;
  transition: background 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(204,0,0,0.15);
  color: var(--red);
}

/* === BLINK ANIMATIONS === */
.blink {
  animation: blink 1s step-end infinite;
}

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

/* === COLOR HELPERS === */
.red { color: var(--red); }
.green { color: var(--green); }
.yellow { color: var(--yellow); }

/* === SECTION DIVIDERS === */
.section-divider {
  text-align: center;
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 3px;
  padding: 30px 0 20px;
  border-top: 1px solid var(--border-red);
  margin-top: 20px;
}

.paranormal-div {
  border-top-color: #440044;
  color: #aa00aa;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red); }
::-webkit-scrollbar-thumb:hover { background: var(--red-glow); }

/* === STATUS BAR === */
.status-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  font-size: 0.7rem;
  color: #666;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot.red { background: var(--red); box-shadow: 0 0 6px var(--red-glow); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.blink-dot { animation: blink 0.8s step-end infinite; }

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #0a0000;
  border: 2px solid var(--red);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 25px;
  position: relative;
  box-shadow: 0 0 30px rgba(204,0,0,0.4);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  cursor: pointer;
}

.modal-close:hover { background: var(--red); color: #fff; }

.modal-threat {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.65rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.threat-critical { background: #550000; color: #ff4444; border: 1px solid #ff0000; }
.threat-high { background: #553300; color: #ffaa00; border: 1px solid #ff8800; }
.threat-medium { background: #333300; color: #ffff00; border: 1px solid #ffcc00; }

.modal-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
  text-shadow: 0 0 10px rgba(204,0,0,0.5);
  margin-bottom: 5px;
}

.modal-alias {
  color: #888;
  font-size: 0.75rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.modal-img-placeholder {
  width: 100%;
  height: 120px;
  background: #111;
  border: 1px dashed #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 0.7rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.modal-info {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text);
  border-left: 2px solid var(--red);
  padding-left: 12px;
}

.modal-info p { margin-bottom: 8px; }

.modal-info .label {
  color: var(--red);
  font-size: 0.65rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .top-nav { display: none; }
  .mobile-nav { display: block; }
  .big-daddy-corner { top: 60px; right: 5px; max-width: 100px; }
  .eye-logo { font-size: 1.5rem; }
  .bd-text { font-size: 0.55rem; }
  .side-watcher { display: none; }
  .right-watcher { display: none; }
}
