/* ============================================================
   DEADSHORE PROTOCOL — STYLESHEET
   Inspired by Project Zomboid's gritty post-apocalyptic aesthetic
   ============================================================ */

/* ----- GOOGLE FONTS FALLBACK STACK ----- */
:root {
  --font-title:    'Oswald', 'Impact', sans-serif;
  --font-body:     'Special Elite', 'Courier New', monospace;
  --font-mono:     'Share Tech Mono', 'Courier New', monospace;

  --col-bg:        #0b0c09;
  --col-paper:     #111209;
  --col-border:    #2e2b1e;
  --col-green:     #5a8c3a;
  --col-green-dim: #3a5c25;
  --col-red:       #9c1c1c;
  --col-red-bright:#c42b2b;
  --col-yellow:    #c9a227;
  --col-text:      #b8ad93;
  --col-text-dim:  #6e6a57;
  --col-highlight: #d4c47a;
  --col-danger:    #c42b2b;
  --col-stamp-red: rgba(140, 20, 20, 0.85);
  --col-stamp-grn: rgba(40, 80, 20, 0.85);
}

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--col-bg);
  background-image: url('bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--col-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Dark overlay over the background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 3, 0.88) 0%,
    rgba(8, 10, 5, 0.82) 50%,
    rgba(5, 7, 3, 0.92) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ----- SCAN LINES OVERLAY ----- */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: multiply;
}

/* ----- GRAIN NOISE OVERLAY ----- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.04;
  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");
  background-size: 200px 200px;
}

/* ----- PAGE WRAPPER ----- */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ----- HEADER ----- */
.site-header {
  text-align: center;
  padding: 30px 20px 10px;
  position: relative;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.logo {
  max-width: 480px;
  width: 100%;
  /* Subtle glow mimicking PZ's UI feel */
  filter:
    drop-shadow(0 0 18px rgba(90, 140, 58, 0.6))
    drop-shadow(0 0 40px rgba(90, 140, 58, 0.25));
  animation: logoFlicker 8s infinite;
}

@keyframes logoFlicker {
  0%,  95%, 100%  { opacity: 1; filter: drop-shadow(0 0 18px rgba(90, 140, 58, 0.6)) drop-shadow(0 0 40px rgba(90, 140, 58, 0.25)); }
  96%             { opacity: 0.82; filter: drop-shadow(0 0 8px rgba(90, 140, 58, 0.3)); }
  97%             { opacity: 1; }
  98%             { opacity: 0.88; }
}

/* ----- STAMPS ----- */
.header-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.stamp {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 4px 14px;
  border-width: 2px;
  border-style: solid;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  opacity: 0.9;
}

.stamp-red {
  color: #e04a4a;
  border-color: #9c1c1c;
  background: rgba(80, 10, 10, 0.55);
  transform: rotate(-2deg);
}

.stamp-green {
  color: #7eba56;
  border-color: #3a6020;
  background: rgba(15, 40, 8, 0.55);
  transform: rotate(1deg);
}

/* ----- DIVIDERS ----- */
.divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--col-green-dim) 15%,
    var(--col-green) 50%,
    var(--col-green-dim) 85%,
    transparent
  );
  margin: 32px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--col-green);
  background: var(--col-bg);
  transform: rotate(45deg);
}

.divider::before { left: 50%; margin-left: -60px; }
.divider::after  { left: 50%; margin-left: 52px; }

.divider-blood {
  background: linear-gradient(
    to right,
    transparent,
    var(--col-red) 20%,
    var(--col-red-bright) 50%,
    var(--col-red) 80%,
    transparent
  );
}

.divider-blood::before,
.divider-blood::after {
  border-color: var(--col-red-bright);
}

/* ----- DOCUMENT SECTIONS ----- */
.doc-section {
  background: rgba(10, 12, 6, 0.72);
  border: 1px solid var(--col-border);
  border-left: 3px solid var(--col-green);
  padding: 28px 32px;
  margin-bottom: 10px;
  position: relative;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(0, 0, 0, 0.3);
}

/* Corner accent top-right */
.doc-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--col-green-dim) transparent transparent;
}

/* ----- SECTION LABEL (small top tag) ----- */
.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--col-green);
  border-bottom: 1px solid var(--col-border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* ----- CLASSIFIED BAR ----- */
.classified-bar {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    -45deg,
    rgba(140, 30, 30, 0.18),
    rgba(140, 30, 30, 0.18) 6px,
    transparent 6px,
    transparent 12px
  );
  border: 1px solid var(--col-red);
  color: #c46060;
  padding: 8px 16px;
  text-align: center;
  margin-bottom: 20px;
}

/* ----- SECTION HEADING ----- */
.section-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--col-highlight);
  text-shadow:
    0 0 12px rgba(201, 162, 39, 0.4),
    2px 2px 0 rgba(0,0,0,0.8);
  margin-bottom: 16px;
  margin-top: 4px;
}

/* ----- BODY PARAGRAPHS ----- */
.doc-section p {
  margin-bottom: 14px;
  color: var(--col-text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.doc-section p:last-child { margin-bottom: 0; }

/* ----- INLINE HIGHLIGHTS ----- */
.highlight {
  color: var(--col-highlight);
  font-weight: bold;
}

.danger {
  color: var(--col-danger);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- INTEL BLOCK (key-value rows) ----- */
.intel-block {
  margin-top: 20px;
  border: 1px solid var(--col-border);
  background: rgba(0, 0, 0, 0.35);
}

.intel-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--col-border);
  padding: 0;
}

.intel-row:last-child { border-bottom: none; }

.intel-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--col-green);
  background: rgba(20, 35, 10, 0.6);
  padding: 12px 16px;
  min-width: 170px;
  border-right: 1px solid var(--col-border);
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.intel-val {
  padding: 12px 18px;
  color: var(--col-text);
  font-size: 15px;
  line-height: 1.6;
}

/* ----- SKULL LIST ----- */
.skull-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skull-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--col-border);
  border-left: 2px solid var(--col-red);
  transition: border-color 0.2s, background 0.2s;
}

.skull-list li:hover {
  border-left-color: var(--col-red-bright);
  background: rgba(80, 10, 10, 0.18);
}

.list-icon {
  font-size: 22px;
  color: var(--col-red);
  flex-shrink: 0;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(180, 30, 30, 0.7);
}

.skull-list strong {
  color: var(--col-highlight);
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- FOOTER ----- */
.site-footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: 10px;
}

.footer-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--col-text-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-bio {
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--col-red);
  text-transform: uppercase;
  opacity: 0.8;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0c09; }
::-webkit-scrollbar-thumb { background: var(--col-green-dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--col-green); }

/* ----- SELECTION ----- */
::selection {
  background: rgba(90, 140, 58, 0.35);
  color: #eee;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  .doc-section { padding: 18px 16px; }
  .logo { max-width: 280px; }
  .section-title { font-size: 20px; }
  .intel-row { flex-direction: column; }
  .intel-key { min-width: unset; border-right: none; border-bottom: 1px solid var(--col-border); }
}
