/* ==========================================================================
   1. SURVIVAL HORROR WALLPAPER & BACKDROP SCAPE
   ========================================================================== */
body.resident-evil-theme {
  background-image: url("../../images/backgrounds/resident_evil_background.jpg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #0c0604;
  color: #e0e0e0 !important;
}

/* Turns off the cyber code backdrop graphics automatically */
.resident-evil-theme #cyberStormCanvas {
  display: none !important;
}

/* ==========================================================================
   2. RE NAVIGATION SIDEBAR OVERRIDES (Unified Shape, Horror Colors)
   ========================================================================== */
.resident-evil-theme .cyber-terminal {
  background-color: #120b08 !important; /* Muted rotted wood brown background */
  border: 2px solid #5a1818 !important; /* Iron rust framing border */
  box-shadow:
    0 0 25px rgba(90, 24, 24, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.9) !important;
}

.resident-evil-theme .status-dot {
  background-color: #8c1c1c !important; /* Blood node pulse */
  box-shadow: 0 0 8px #8c1c1c !important;
  animation: pulseGlowRE 2.5s infinite ease-in-out !important;
}

.resident-evil-theme .terminal-title {
  color: #5a1818 !important;
  font-weight: 1200 !important;
}

.resident-evil-theme .terminal-divider {
  background: linear-gradient(to right, #5a1818, transparent) !important;
}

.resident-evil-theme .nav-item {
  color: #8a7b73 !important; /* Dusty ash navigation text link string */
}

.resident-evil-theme .nav-bracket {
  color: #d12323 !important; /* Visceral crimson punctuation highlights */
}

.resident-evil-theme .nav-item:hover {
  color: #d12323 !important;
  text-shadow: 0 0 8px rgba(209, 35, 35, 0.5) !important;
}

.resident-evil-theme .nav-item.active {
  color: #d12323 !important;
  text-shadow: 0 0 6px rgba(209, 35, 35, 0.3) !important;
}

.resident-evil-theme .nav-item.active .nav-bracket {
  color: #d12323 !important;
}

@keyframes pulseGlowRE {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
    box-shadow: 0 0 4px #8c1c1c;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 10px #d12323;
  }
}

/* ==========================================================================
   3. RE CUSTOM HEADERS (SWAPPED HUD LAYOUT POSITIONING)
   ========================================================================== */
h1.re-clean-tech-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

h1.re-clean-tech-title .path-left {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #d12323;
  text-shadow:
    0 0 10px rgba(209, 35, 35, 0.4),
    2px 2px 4px rgba(0, 0, 0, 0.9);
}

h1.re-clean-tech-title .title-right {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #8c1c1c;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(140, 28, 28, 0.2);
}

.resident-evil-theme h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-left: 10px;
  color: #8c1c1c;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(140, 28, 28, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resident-evil-theme h2::after {
  content: "";
  width: 100%;
  max-width: 350px;
  height: 2px;
  background: linear-gradient(to right, #8c1c1c, #301f14, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.resident-evil-theme h2:hover {
  color: #d12323;
  text-shadow:
    0 0 8px rgba(209, 35, 35, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.9);
  transition:
    color 0.15s ease,
    text-shadow 0.15s ease;
}

.resident-evil-theme h2:hover::after {
  background: linear-gradient(to right, #d12323, #8c1c1c, transparent);
}

/* ==========================================================================
   4. WALNUT MOULDING SHELF & CRIMSON CUBBIES
   ========================================================================== */
.resident-evil-theme .wooden-shelf {
  border: 15px solid #301f14 !important;
  background-color: #1d130c !important;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 4px,
      rgba(48, 31, 20, 0.2) 4px,
      rgba(48, 31, 20, 0.2) 8px
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent) !important;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.95),
    0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

.resident-evil-theme .shelf-cubby {
  background-color: #260b0b !important;
  background-image: none !important;
  border-radius: 2px;
  box-shadow:
    inset 8px 8px 20px rgba(0, 0, 0, 0.95),
    inset -4px -4px 15px rgba(0, 0, 0, 0.4),
    0 6px 0 #301f14 !important;
}

.resident-evil-theme .shelf-cubby:hover {
  transform: scale(1.03) !important;
  box-shadow:
    inset 4px 4px 12px rgba(0, 0, 0, 0.95),
    0 5px 20px rgba(140, 28, 28, 0.4) !important;
}

.resident-evil-theme .game-title {
  color: #c4b9b1 !important;
  font-family: "Courier New", Courier, monospace !important;
}

/* ==========================================================================
   5. FILE READOUT BLOCKS & VIEW OVERRIDES
   ========================================================================== */
.resident-evil-theme .game-description {
  background: rgba(29, 19, 12, 0.65) !important;
  border-left: 4px solid #8c1c1c !important;
  border-radius: 3px;
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.05),
    0 4px 15px rgba(0, 0, 0, 0.6) !important;
}

.resident-evil-theme .game-description h2 {
  color: #8c1c1c !important;
}
.resident-evil-theme .game-description p {
  color: #bfaea3 !important;
}
.resident-evil-theme .fullscreen-btn {
  background-color: rgba(13, 8, 5, 0.9) !important;
  color: #8c1c1c !important;
  border: 2px solid #8c1c1c !important;
}
.resident-evil-theme .fullscreen-btn:hover {
  background-color: #8c1c1c !important;
  color: #1d130c !important;
  box-shadow: 0 0 14px #8c1c1c !important;
}
.resident-evil-theme model-viewer:fullscreen {
  background-color: #0d0805 !important;
}
