/*
Theme Name: Ad The Jokester
Main Theme Stylesheet
Production Version 1.0.0
*/

/* ==========================================================================
   1. GLOBAL LAYOUT & CONTAINERS
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-container-narrow {
  width: 100%;
  max-width: var(--container-reading);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-spacing {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.section-header {
  margin-bottom: 40px;
  position: relative;
}

.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 3px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--color-offwhite);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span.accent {
  color: var(--color-yellow);
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Editorial Dividers */
.editorial-hr {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-yellow),
    var(--color-yellow) 8px,
    transparent 8px,
    transparent 16px
  );
  border: none;
  margin: 40px 0;
}

/* ==========================================================================
   2. STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background 0.3s var(--ease-brutal), border-color 0.3s var(--ease-brutal), box-shadow 0.3s var(--ease-brutal);
}

.site-header.scrolled {
  background: rgba(7, 7, 8, 0.96);
  border-bottom: 2px solid var(--color-yellow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Wordmark Branding */
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-offwhite);
  line-height: 1;
  text-transform: uppercase;
  position: relative;
}

.brand-wordmark .accent-jokester {
  color: var(--color-yellow);
}

.brand-wordmark sup {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: var(--color-pink);
  top: -0.8em;
}

/* Nav Menu */
.primary-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.primary-nav-menu li a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-offwhite);
  padding: 6px 4px;
  position: relative;
}

.primary-nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-yellow);
  transition: width 0.2s var(--ease-brutal);
}

.primary-nav-menu li a:hover::after,
.primary-nav-menu li.current-menu-item a::after {
  width: 100%;
}

.primary-nav-menu li.menu-item-horror a:hover { color: var(--color-pink); }
.primary-nav-menu li.menu-item-horror a:hover::after { background: var(--color-pink); }

.primary-nav-menu li.menu-item-thriller a:hover { color: var(--color-cyan); }
.primary-nav-menu li.menu-item-thriller a:hover::after { background: var(--color-cyan); }

.primary-nav-menu li.menu-item-stories a {
  color: var(--color-yellow);
  border: 1px dashed var(--color-yellow);
  padding: 4px 10px;
}

.primary-nav-menu li.menu-item-stories a:hover {
  background: var(--color-yellow);
  color: #000;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-search {
  background: transparent;
  border: 1px solid var(--color-border-bright);
  color: var(--color-offwhite);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all 0.2s var(--ease-brutal);
}

.btn-header-search:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background: var(--bg-secondary);
}

.btn-mobile-toggle {
  display: none;
  background: var(--color-yellow);
  border: 2px solid #000;
  color: #000;
  padding: 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000;
}

/* ==========================================================================
   3. MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 3px solid var(--color-yellow);
  z-index: 9999;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -15px 0 40px rgba(0,0,0,0.9);
  transition: right 0.35s var(--ease-brutal);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  right: 0;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-brutal);
}

.mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.btn-drawer-close {
  background: var(--color-pink);
  color: #fff;
  border: 2px solid #000;
  font-weight: 900;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-list li a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  display: block;
  padding: 8px 12px;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.mobile-nav-list li a:hover {
  border-left-color: var(--color-yellow);
  background: var(--bg-secondary);
  color: var(--color-yellow);
  transform: translateX(6px);
}

/* ==========================================================================
   4. FULLSCREEN CLASSIFIED SEARCH MODAL
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.96);
  backdrop-filter: blur(16px);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-brutal);
}

.search-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  width: 100%;
  max-width: 720px;
  background: var(--bg-secondary);
  border: 3px solid var(--color-yellow);
  box-shadow: 8px 8px 0px #000;
  padding: 40px;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-pink);
  color: #fff;
  border: 2px solid #000;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
}

.search-form-classified {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.search-input-classified {
  flex: 1;
  background: #000;
  border: 2px solid var(--color-border-bright);
  color: var(--color-yellow);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  padding: 14px 18px;
  outline: none;
}

.search-input-classified:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 10px rgba(243, 228, 58, 0.3);
}

/* ==========================================================================
   5. HOMEPAGE HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 60px 0 80px 0;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: 3px solid #000;
}

/* Halftone and Grid Background layers */
.hero-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: 
    radial-gradient(#F3E43A 1.5px, transparent 1.5px),
    radial-gradient(#FF356E 1px, transparent 1px);
  background-size: 32px 32px, 16px 16px;
  background-position: 0 0, 8px 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
}

.hero-badge-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8.5vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--color-offwhite);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-headline .highlight-yellow {
  color: var(--color-yellow);
  position: relative;
  display: inline-block;
}

.hero-headline .highlight-yellow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 14px;
  background: rgba(243, 228, 58, 0.25);
  z-index: -1;
}

.hero-subtext {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--color-offwhite);
  line-height: 1.4;
  margin-bottom: 36px;
  max-width: 580px;
  border-left: 4px solid var(--color-pink);
  padding-left: 18px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero Mascot Graphic */
.hero-mascot-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease-brutal);
}

.hero-mascot-wrap:hover .hero-mascot-img {
  transform: rotate(1deg) scale(1.03);
}

/* Floating Comic Dialogue / Doodles */
.hero-speech-bubble {
  position: absolute;
  top: 10%;
  right: -10px;
  background: var(--color-yellow);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 14px;
  border: 2px solid #000;
  box-shadow: 4px 4px 0px #000;
  transform: rotate(4deg);
  z-index: 3;
}

.hero-speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border-width: 10px 8px 0 0;
  border-style: solid;
  border-color: var(--color-yellow) transparent transparent transparent;
}

/* ==========================================================================
   6. "PICK YOUR POISON" 4 MOOD CARDS
   ========================================================================== */
.poison-section {
  background: var(--bg-secondary);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.poison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.poison-card {
  position: relative;
  background: #000;
  border: 3px solid #000;
  padding: 30px 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s var(--ease-brutal), box-shadow 0.3s var(--ease-brutal);
  text-decoration: none;
}

/* Color Themes for each card */
.poison-card.card-horror {
  box-shadow: 6px 6px 0px var(--color-pink);
  border-color: #222227;
}
.poison-card.card-horror:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 10px 12px 0px var(--color-pink);
  border-color: var(--color-pink);
}

.poison-card.card-thriller {
  box-shadow: 6px 6px 0px var(--color-cyan);
  border-color: #222227;
}
.poison-card.card-thriller:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 10px 12px 0px var(--color-cyan);
  border-color: var(--color-cyan);
}

.poison-card.card-trend {
  box-shadow: 6px 6px 0px #37D5E8;
  border-color: #222227;
}
.poison-card.card-trend:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 10px 12px 0px #37D5E8;
  border-color: #37D5E8;
}

.poison-card.card-memes {
  box-shadow: 6px 6px 0px var(--color-yellow);
  border-color: #222227;
}
.poison-card.card-memes:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 10px 12px 0px var(--color-yellow);
  border-color: var(--color-yellow);
}

.poison-card-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 14px 14px;
}

.poison-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.card-horror .poison-card-tag { color: var(--color-pink); }
.card-thriller .poison-card-tag { color: var(--color-cyan); }
.card-trend .poison-card-tag { color: var(--color-cyan); }
.card-memes .poison-card-tag { color: var(--color-yellow); }

.poison-card-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.95;
  color: var(--color-offwhite);
  margin-bottom: 12px;
}

.poison-card-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #cfc8b4;
  line-height: 1.35;
  margin-bottom: 24px;
}

.poison-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poison-card-cta {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.card-horror .poison-card-cta { color: var(--color-pink); }
.card-thriller .poison-card-cta { color: var(--color-cyan); }
.card-trend .poison-card-cta { color: var(--color-cyan); }
.card-memes .poison-card-cta { color: var(--color-yellow); }

.poison-card-icon {
  font-size: 1.8rem;
  opacity: 0.7;
  transition: transform 0.2s var(--ease-brutal);
}

.poison-card:hover .poison-card-icon {
  transform: scale(1.2) rotate(-6deg);
  opacity: 1;
}

/* ==========================================================================
   7. FEATURED STORY ("TODAY'S RABBIT HOLE")
   ========================================================================== */
.rabbit-hole-section {
  background: var(--bg-primary);
}

.rabbit-hole-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--bg-secondary);
  border: 3px solid #000;
  box-shadow: 8px 8px 0px var(--color-yellow);
  overflow: hidden;
  position: relative;
}

.rabbit-hole-media {
  position: relative;
  min-height: 420px;
  background: #000;
  overflow: hidden;
}

.rabbit-hole-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-brutal);
}

.rabbit-hole-card:hover .rabbit-hole-img {
  transform: scale(1.05);
}

.rabbit-hole-overlay-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.rabbit-hole-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.rabbit-hole-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.rabbit-hole-meta span.dot {
  color: var(--color-yellow);
}

.rabbit-hole-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-offwhite);
}

.rabbit-hole-title a:hover {
  color: var(--color-yellow);
}

.rabbit-hole-excerpt {
  font-size: 1.05rem;
  color: #cfc8b4;
  line-height: 1.6;
  margin-bottom: 28px;
}

.rabbit-hole-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px dashed var(--color-border);
  padding-top: 20px;
}

.rabbit-hole-author {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-muted);
}

.rabbit-hole-author strong {
  color: var(--color-offwhite);
}

/* ==========================================================================
   8. TRENDING MARQUEE TICKER STRIP
   ========================================================================== */
.trending-strip-wrap {
  background: var(--bg-primary);
  padding: 20px 0;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.trending-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--color-offwhite);
  text-transform: uppercase;
}

.trending-item:hover {
  color: var(--color-yellow);
}

.trending-item .hash {
  color: var(--color-pink);
  font-family: var(--font-mono);
}

.trending-item .separator {
  color: var(--color-yellow);
  font-size: 1.2rem;
}

/* ==========================================================================
   9. LATEST STORIES (VARIED MAGAZINE CLIPPINGS GRID)
   ========================================================================== */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Magazine Card */
.article-clipping-card {
  background: var(--bg-secondary);
  border: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease-brutal), border-color 0.25s, box-shadow 0.25s;
}

.article-clipping-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 6px 6px 0px #000;
  transform: translateY(-4px);
}

/* Asymmetric Accent on every 3rd card */
.article-clipping-card:nth-child(3n + 1) {
  border-top: 4px solid var(--color-yellow);
}
.article-clipping-card:nth-child(3n + 2) {
  border-top: 4px solid var(--color-pink);
}
.article-clipping-card:nth-child(3n + 3) {
  border-top: 4px solid var(--color-cyan);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-brutal);
}

.article-clipping-card:hover .card-thumb-img {
  transform: scale(1.06);
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.card-title a {
  color: var(--color-offwhite);
}

.card-title a:hover {
  color: var(--color-yellow);
}

.card-excerpt {
  font-size: 0.92rem;
  color: #cfc8b4;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.card-read-more {
  color: var(--color-yellow);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   10. STORIES / EBOOK VAULT
   ========================================================================== */
.ebook-vault-section {
  background: #030304;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  position: relative;
  overflow: hidden;
}

.vault-shelf-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 24px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.vault-shelf-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-offwhite);
  letter-spacing: 0.04em;
}

.vault-shelf-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}

.ebook-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-secondary);
  border: 2px solid var(--color-border);
  padding: 24px 18px 20px 18px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ebook-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 6px 6px 0px #000;
}

.ebook-info {
  margin-top: 20px;
  width: 100%;
}

.ebook-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.ebook-title a:hover {
  color: var(--color-yellow);
}

.ebook-author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.ebook-meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-cyan);
  margin-bottom: 16px;
}

/* ==========================================================================
   11. CULT NEWSLETTER SECTION ("JOIN THE WEIRD SIDE")
   ========================================================================== */
.newsletter-section {
  background: var(--bg-primary);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  position: relative;
  padding: 80px 0;
}

.newsletter-box {
  background: var(--bg-secondary);
  border: 3px solid var(--color-yellow);
  box-shadow: 10px 10px 0px #000;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.newsletter-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.95;
  color: var(--color-offwhite);
  margin-bottom: 14px;
}

.newsletter-headline span.cult {
  color: var(--color-yellow);
}

.newsletter-copy {
  font-size: 1.1rem;
  color: #cfc8b4;
  line-height: 1.5;
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.newsletter-input-group {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  background: #000;
  border: 2px solid var(--color-border-bright);
  color: var(--color-offwhite);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-yellow);
}

.newsletter-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ==========================================================================
   12. SINGLE ARTICLE PAGE
   ========================================================================== */
.single-article-header {
  padding: 60px 0 40px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.single-article-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.single-article-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 20px;
  color: var(--color-offwhite);
}

.single-article-deck {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #cfc8b4;
  line-height: 1.45;
  margin-bottom: 30px;
  border-left: 4px solid var(--color-yellow);
  padding-left: 18px;
}

.single-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-muted);
  border-top: 1px dashed var(--color-border);
  padding-top: 18px;
}

.single-hero-media {
  margin-bottom: 48px;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px var(--color-yellow);
  position: relative;
  background: #000;
}

.single-hero-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.single-article-body {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--color-offwhite);
}

/* Drop Cap */
.single-article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.8rem;
  float: left;
  line-height: 0.8;
  margin-right: 14px;
  margin-top: 4px;
  color: var(--color-yellow);
  text-shadow: 3px 3px 0px #000;
}

/* Pull Quotes */
.single-article-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--color-yellow);
  border-left: 5px solid var(--color-pink);
  padding: 16px 24px;
  margin: 36px 0;
  background: var(--bg-secondary);
}

/* Highlight text */
.single-article-body mark,
.highlight-ribbon {
  background: var(--color-yellow);
  color: #000;
  padding: 2px 6px;
  font-weight: 700;
}

/* Article Author Box */
.author-box {
  background: var(--bg-secondary);
  border: 2px solid var(--color-border);
  padding: 30px;
  margin: 60px 0 40px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.author-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-yellow);
  overflow: hidden;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-yellow);
  margin-bottom: 6px;
}

.author-bio {
  font-size: 0.95rem;
  color: #cfc8b4;
  margin-bottom: 0;
}

/* ==========================================================================
   13. CATEGORY & ARCHIVE PAGES
   ========================================================================== */
.category-header {
  padding: 60px 0 40px 0;
  border-bottom: 3px solid var(--color-border);
  margin-bottom: 48px;
  position: relative;
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.category-desc {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 680px;
}

/* Category Variations */
.category-horror .category-title { color: var(--color-pink); }
.category-horror .category-header { border-bottom-color: var(--color-pink); }

.category-thriller .category-title { color: var(--color-cyan); }
.category-thriller .category-header { border-bottom-color: var(--color-cyan); }

.category-trend .category-title { color: var(--color-cyan); }
.category-trend .category-header { border-bottom-color: var(--color-cyan); }

.category-memes .category-title { color: var(--color-yellow); }
.category-memes .category-header { border-bottom-color: var(--color-yellow); }

/* Memes Masonry / Grid */
.memes-grid {
  columns: 3 320px;
  column-gap: 24px;
}

.meme-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border: 3px solid #000;
  box-shadow: 4px 4px 0px var(--color-yellow);
  overflow: hidden;
  transition: transform 0.2s var(--ease-brutal), box-shadow 0.2s;
}

.meme-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0px var(--color-pink);
}

.meme-img-wrap {
  position: relative;
  background: #000;
}

.meme-img {
  width: 100%;
  display: block;
}

.meme-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #000;
  background: var(--bg-primary);
}

.btn-meme-laugh {
  background: var(--color-yellow);
  color: #000;
  border: 2px solid #000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0px #000;
}

.btn-meme-laugh:hover {
  background: var(--color-pink);
  color: #fff;
}

/* ==========================================================================
   14. 404 PAGE ("YOU WENT TOO FAR")
   ========================================================================== */
.error-404-container {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.error-404-box {
  max-width: 620px;
  margin: 0 auto;
}

.error-404-mascot {
  width: 240px;
  height: 240px;
  margin: 0 auto 24px auto;
}

.error-404-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--color-pink);
  margin-bottom: 16px;
}

.error-404-subtext {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: #cfc8b4;
  margin-bottom: 32px;
}

/* ==========================================================================
   15. COMMENTS SECTION
   ========================================================================== */
.comments-area {
  margin-top: 60px;
  border-top: 3px solid var(--color-border);
  padding-top: 40px;
}

.comments-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment {
  background: var(--bg-secondary);
  border: 2px solid var(--color-border);
  padding: 24px;
  margin-bottom: 20px;
}

.comment-author {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-yellow);
  margin-bottom: 8px;
}

.comment-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: #000;
  border-top: 4px solid var(--color-yellow);
  color: var(--color-offwhite);
  padding: 80px 0 40px 0;
  margin-top: auto;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .brand-wordmark {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-yellow);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-subtext {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-offwhite);
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu li a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #cfc8b4;
}

.footer-menu li a:hover {
  color: var(--color-yellow);
  padding-left: 4px;
}

.footer-mascot-box {
  width: 100%;
  max-width: 240px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.footer-legal-links a:hover {
  color: var(--color-yellow);
}

/* ==========================================================================
   17. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptop (1280px) */
@media (max-width: 1280px) {
  .hero-headline {
    font-size: 5.5rem;
  }
  .poison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ebook-shelf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-mascot-box {
    grid-column: span 3;
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .primary-nav-menu,
  .btn-header-search span {
    display: none;
  }
  .btn-mobile-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .hero-headline {
    font-size: 4rem;
  }
  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    padding-left: 0;
    border-bottom: 3px solid var(--color-pink);
    padding-bottom: 12px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-mascot-img {
    max-width: 320px;
  }
  .rabbit-hole-card {
    grid-template-columns: 1fr;
  }
  .rabbit-hole-content {
    padding: 28px;
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
  .ebook-shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-mascot-box {
    grid-column: span 2;
  }
}

/* Mobile (390px) */
@media (max-width: 480px) {
  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-headline {
    font-size: 3.2rem;
  }
  .poison-grid {
    grid-template-columns: 1fr;
  }
  .ebook-shelf-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-input-group {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .btn-brutal {
    width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .memes-grid {
    columns: 1;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-content {
    animation: none;
    overflow-x: auto;
  }
}
