/* ============================================
   Watchman Privacy — ett-lite.css
   Cyberpunk theme — v2.1
   ============================================ */

@font-face {
  font-family: 'OpenSansCondLight';
  src: url('fonts/OpenSans-CondLight.ttf');
}

/* ── CSS VARIABLES ── */
:root {
  --red: #cd061d;
  --dark-red: #8b0012;
  --glow: 0 0 10px rgba(205, 6, 29, 0.5),
          0 0 40px rgba(205, 6, 29, 0.15);
  --text-glow: 0 0 8px rgba(205, 6, 29, 0.6);
}

/* ── ANIMATIONS ── */
@keyframes glitch {
  0%   { text-shadow: 2px 0 var(--red), -2px 0 cyan; }
  20%  { text-shadow: -2px 0 var(--red), 2px 0 cyan; }
  40%  { text-shadow: 2px 2px var(--red), -2px -2px cyan; }
  60%  { text-shadow: -1px 0 var(--red), 1px 0 cyan; }
  80%  { text-shadow: 2px -1px var(--red), -2px 1px cyan; }
  100% { text-shadow: 0 0 var(--red), 0 0 cyan; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%       { opacity: 1; }
  93%       { opacity: 0.8; }
  94%       { opacity: 1; }
  96%       { opacity: 0.6; }
  97%       { opacity: 1; }
}

@keyframes pulse-border {
  0%, 100% {
    border-color: var(--red);
    box-shadow: 0 2px 12px rgba(205, 6, 29, 0.4);
  }
  50% {
    border-color: var(--dark-red);
    box-shadow: 0 2px 5px rgba(205, 6, 29, 0.15);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(205, 6, 29, 0.3),
                0 0 30px rgba(205, 6, 29, 0.08);
  }
  50% {
    box-shadow: 0 0 25px rgba(205, 6, 29, 0.65),
                0 0 70px rgba(205, 6, 29, 0.2);
  }
}

@keyframes radiate {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
  }
}

/* ── BASE ── */
body {
  background-color: #141414;
  color: #e0e3e7;
  font-size: x-large;
  font-family: 'OpenSansCondLight', sans-serif;
}

/* CRT scanline overlay */
body::after {
  content: "";
  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.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

main {
  background-image: url(newsletter_rebel.jpg);
  background-attachment: fixed;
  background-position-x: center;
  background-repeat: no-repeat;
}

/* Push content below fixed header */
main.container {
  padding-top: 60px;
}

pre {
  font-size: 12px;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: var(--red);
  text-shadow: var(--glow);
  letter-spacing: 6px;
  animation: glitch 8s infinite;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--text-glow);
  letter-spacing: 4px;
  margin-bottom: 5px;
}

h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #e0e3e7;
  letter-spacing: 2px;
}

h4 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 3px;
  color: #888;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  background-color: #fafafa;
  color: #141414;
}

/* ── FIXED HEADER / NAV ── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.98) 0%,
    rgba(20, 20, 20, 0.92) 100%
  );
  border-bottom: 1px solid var(--red);
  backdrop-filter: blur(10px);
  animation: pulse-border 3s infinite;
  padding: 12px 0;
  margin: 0;
}

header p {
  margin: 0;
}

header a {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

/* Prevent white flash on header link hover */
header a:hover {
  background-color: transparent;
  color: #e0e3e7;
}

/* ── SECTIONS ── */
.section {
  padding: 55px 15px 15px;
  border-color: #242424;
  border-width: 0px;
  border-top-width: 1px;
  border-style: solid;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 100px;
}

/* Small flickering label above h2 */
.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--dark-red);
  letter-spacing: 5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  animation: flicker 6s infinite;
}

/* Glowing red rule under h2 */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin-bottom: 28px;
  box-shadow: 0 0 10px rgba(205, 6, 29, 0.6);
}

/* ── HERO ── */
.hero-intro {
  position: relative;
  text-align: center;
  padding: 70px 20px 40px;
  overflow: hidden;
}

/* Radiating aura behind the hero title */
.hero-intro::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 520px;
  background: radial-gradient(
    ellipse at center,
    rgba(205, 6, 29, 0.22) 0%,
    rgba(205, 6, 29, 0.10) 30%,
    rgba(205, 6, 29, 0.03) 58%,
    transparent 72%
  );
  pointer-events: none;
  animation: radiate 5s ease-in-out infinite;
  z-index: 0;
}

/* Keep text above glow layer */
.hero-intro h1,
.hero-intro p {
  position: relative;
  z-index: 1;
}

/* ── IMAGES ── */
.jumbotron-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Newsletter image — 2× size with animated glow */
.newsletter-img-large {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border: 1px solid var(--dark-red);
  animation: glow-pulse 4s ease-in-out infinite;
}

/* ── BUTTONS ── */
button {
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  letter-spacing: 2px;
  border-width: 0px;
  background-color: var(--red);
  color: #e0e3e7;
  padding: 10px;
  margin: 10px;
  cursor: pointer;
  clip-path: polygon(
    0 0, calc(100% - 10px) 0,
    100% 10px, 100% 100%,
    10px 100%, 0 calc(100% - 10px)
  );
  transition: all 0.3s ease;
}

button:hover {
  background-color: #ffffff;
  color: #141414;
  box-shadow: var(--glow);
}

button img {
  vertical-align: middle;
}

/* ── BOOKS GRID ── */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.book-card {
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid #2a2a2a;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Red sweep revealed on hover */
.book-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.book-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(205, 6, 29, 0.15);
}

.book-card:hover::before {
  opacity: 1;
}

/* Book cover images — clickable */
.book-card img {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card a:hover img {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 25px rgba(205, 6, 29, 0.4);
}

/* Suppress white flash on book image link hover */
.book-card a:hover {
  background-color: transparent;
}

.book-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: #e0e3e7;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

/* ── VIDEO GRID (2 across × 4 down) ── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}

/* Responsive 16:9 iframe wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid #2a2a2a;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.video-wrapper:hover {
  border-color: var(--red);
  box-shadow: 0 0 18px rgba(205, 6, 29, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── AS SEEN ON ── */
.seen-on-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}

.seen-on-grid figure {
  margin: 0 0 8px 0;
}

/* Suppress white flash on seen-on image links */
.seen-on-grid a:hover {
  background-color: transparent;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid #242424;
  padding: 30px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #888;
}

/* ── UTILITIES ── */
.go-up     { text-align: right; }
.center    { text-align: center; }
.monospace { font-family: monospace; }
.highlight { color: var(--red); }
.codeblock { padding: 5px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  header a {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }
  .newsletter-img-large {
    max-width: 100%;
  }
  .hero-intro::before {
    width: 100%;
    height: 300px;
  }
}
