/* ============================================================
   STICK-DEATH.COM — global.css
   Shared shell styles for non-episode pages.
   Episodes are self-contained and do NOT load this file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

:root {
  --bg:        #0a0a0a;
  --bg-card:   #1a0000;
  --bg-panel:  #0f0000;
  --red:       #cc0000;
  --red-hot:   #ff0000;
  --red-dark:  #440000;
  --red-edge:  #330000;
  --blood:     #770000;
  --blood-2:   #880000;
  --orange:    #ff6600;
  --gray:      #555555;
  --gray-dk:   #333333;
}

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

html, body { background: var(--bg); }

body {
  color: var(--red);
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

/* ---------- Vignette ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* ---------- Glitch hook (JS toggles .glitch on body) ---------- */
body.glitch { transform: translateX(2px); }
body.glitch-2 { transform: translateX(-2px); }

/* ---------- Headings & display type ---------- */
.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: 1px; }

h1, h2, h3, h4 { font-family: 'Press Start 2P', monospace; letter-spacing: 2px; color: var(--red-hot); }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hot); text-shadow: 0 0 6px var(--red); }

hr { border: none; border-top: 1px dashed var(--red-edge); margin: 16px 0; }

/* ============================================================
   SITE CHROME — header / nav / marquee / footer
   ============================================================ */

.site {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ---------- Top blood drips (decorative) ---------- */
.drip-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 14px;
  pointer-events: none;
  z-index: 9997;
}
.drip {
  position: absolute;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blood) 0%, var(--blood-2) 60%, transparent 100%);
  animation: drip-fall 4.6s linear infinite;
  opacity: 0.85;
}
.drip::after {
  content: '';
  position: absolute;
  bottom: -4px; left: -2px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blood-2);
}
@keyframes drip-fall {
  0%   { height: 0;  opacity: 0; }
  10%  { opacity: 0.9; }
  60%  { height: 38px; opacity: 0.9; }
  100% { height: 38px; opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  padding: 28px 16px 22px;
  border: 3px solid var(--red-edge);
  border-bottom: none;
  background: #0c0000;
  position: relative;
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 38px;
  color: var(--red-hot);
  letter-spacing: 4px;
  text-shadow:
    0 0 6px var(--red-hot),
    0 0 14px var(--red),
    3px 3px 0 var(--red-dark);
  animation: title-pulse 2s ease-in-out infinite;
  margin: 0;
}

/* When the title contains the logo image, drop text styling and
   let the image carry the brand. */
.site-title img.site-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 240px;
  filter: drop-shadow(0 0 18px rgba(204,0,0,0.5));
  animation: logo-pulse 3.6s ease-in-out infinite;
}
.site-title:has(img) {
  animation: none;
  text-shadow: none;
  font-size: 0;
  letter-spacing: 0;
  line-height: 0;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(204,0,0,0.35)); }
  50%      { filter: drop-shadow(0 0 22px rgba(255,0,0,0.6)); }
}
@media (max-width: 600px) {
  .site-title img.site-logo-img { max-height: 140px; }
}
@keyframes title-pulse {
  0%, 100% { text-shadow: 0 0 6px var(--red-hot), 0 0 14px var(--red), 3px 3px 0 var(--red-dark); }
  50%      { text-shadow: 0 0 12px var(--red-hot), 0 0 28px var(--red-hot), 3px 3px 0 var(--red-dark); }
}
.site-tagline {
  font-size: 18px;
  color: var(--gray);
  letter-spacing: 4px;
  margin-top: 10px;
}

/* ---------- Marquee ---------- */
.marquee {
  background: #1a0000;
  border: 3px solid var(--red-edge);
  border-top: none;
  border-bottom: none;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--red-hot);
  padding: 9px 0;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 30s linear infinite;
}
.marquee span { padding: 0 32px; letter-spacing: 2px; }
.marquee .skull { color: var(--blood-2); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: #0c0000;
  border: 3px solid var(--red-edge);
  border-top: none;
}
.site-nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 14px 18px;
  color: var(--red);
  border-right: 1px solid var(--red-edge);
  transition: all 0.12s;
  text-shadow: none;
}
.site-nav a:last-child { border-right: none; }
.site-nav a:hover {
  color: #000;
  background: var(--red);
  text-shadow: none;
}
.site-nav a.active { color: var(--red-hot); }
.site-nav a.active::before { content: '> '; }

/* ============================================================
   PANELS / CARDS
   ============================================================ */

.panel {
  background: var(--bg-card);
  border: 2px solid var(--red-edge);
  padding: 18px 18px 20px;
  position: relative;
}
.panel + .panel { margin-top: 22px; }

.panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--red-hot);
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--red-edge);
}
.panel-title .skull { color: var(--blood-2); margin-right: 6px; }

/* ---------- Episode card ---------- */
.ep-card {
  display: block;
  background: #0d0000;
  border: 2px solid var(--red-edge);
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.ep-card:hover {
  border-color: var(--red);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--red-dark);
}
.ep-card:hover .ep-thumb { filter: brightness(1.15) saturate(1.3); }

.ep-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border-bottom: 2px solid var(--red-edge);
  position: relative;
  display: block;
  overflow: hidden;
  transition: filter 0.2s;
}
.ep-thumb svg { width: 100%; height: 100%; display: block; }

.ep-thumb-tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  background: var(--red);
  color: #000;
  padding: 4px 6px;
  letter-spacing: 1px;
  z-index: 2;
}

.ep-thumb-runtime {
  position: absolute;
  bottom: 8px; right: 8px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  background: rgba(0,0,0,0.85);
  color: var(--red-hot);
  padding: 2px 8px;
  border: 1px solid var(--red-dark);
  z-index: 2;
}

.ep-card-body {
  padding: 12px 14px 14px;
}
.ep-card-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 1.5px;
}
.ep-card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--red-hot);
  letter-spacing: 1.5px;
  margin: 8px 0 8px;
  line-height: 1.5;
}
.ep-card-desc {
  font-size: 16px;
  color: #888;
  line-height: 1.4;
  min-height: 44px;
}
.ep-card-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--red-edge);
  font-size: 14px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  letter-spacing: 1px;
}
.ep-card-meta span { color: var(--red); }

/* "Coming soon" / planned card */
.ep-card.planned { opacity: 0.55; pointer-events: none; }
.ep-card.planned .ep-thumb { background: repeating-linear-gradient(45deg, #0d0000 0 10px, #1a0000 10px 20px); }
.ep-card.planned .ep-thumb-tag { background: var(--gray-dk); color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  margin-top: 40px;
  padding: 22px 16px;
  border: 2px dashed var(--red-edge);
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  letter-spacing: 1px;
  line-height: 1.7;
}
.site-footer .pixel { display: block; font-size: 9px; color: var(--red); margin-bottom: 8px; }
.site-footer .disclaimer { font-size: 13px; color: #444; margin-top: 10px; font-style: italic; }
