/* ===========================================
   ZOMBIE APOCALYPSE - Fun Theme for Kids
   =========================================== */

/* ----- 1. CUSTOM FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Bangers&family=Grandstander:wght@400;600;700&display=swap');

:root {
  /* Zombie color palette */
  --zombie-green: #4ade80;
  --zombie-green-dark: #22c55e;
  --zombie-purple: #a855f7;
  --blood-red: #dc2626;
  --slime-yellow: #facc15;
  --bone-white: #fef3c7;
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1a;
}

/* Main headings with creepy font */
.md-typeset h1 {
  font-family: 'Creepster', cursive !important;
  font-size: 3rem !important;
  color: var(--zombie-green) !important;
  text-shadow:
    3px 3px 0 var(--blood-red),
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.md-typeset h2 {
  font-family: 'Bangers', cursive !important;
  font-size: 2rem !important;
  color: var(--slime-yellow) !important;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.md-typeset h3 {
  font-family: 'Bangers', cursive !important;
  color: var(--zombie-purple) !important;
}

/* Body text - keep readable but more playful */
.md-typeset {
  font-family: 'Grandstander', sans-serif !important;
  font-size: 1.05rem;
}

/* Site title */
.md-header__title {
  font-family: 'Creepster', cursive !important;
  font-size: 1.5rem !important;
  color: var(--zombie-green) !important;
}

/* Navigation items */
.md-nav__link {
  font-family: 'Grandstander', sans-serif !important;
  font-weight: 600 !important;
}


/* ----- 2. ANIMATED ELEMENTS ----- */

/* Images shake on hover (except hero images) */
.md-typeset img:hover:not(.hero-boy):not(.hero-girl) {
  animation: zombie-shake 0.5s ease-in-out;
}

@keyframes zombie-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  50% { transform: translateX(5px) rotate(2deg); }
  75% { transform: translateX(-3px) rotate(-1deg); }
}

/* Buttons pulse */
.md-button,
.md-typeset .md-button {
  animation: pulse-glow 2s infinite;
  transition: all 0.3s ease !important;
}

.md-button:hover,
.md-typeset .md-button:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 20px var(--zombie-green) !important;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--zombie-green); }
  50% { box-shadow: 0 0 15px var(--zombie-green), 0 0 30px var(--zombie-green); }
}

/* Navigation hover effects */
.md-nav__link:hover {
  color: var(--zombie-green) !important;
  transform: translateX(5px);
  transition: all 0.2s ease;
}

/* Code blocks glow on hover */
.md-typeset pre:hover {
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
  transition: box-shadow 0.3s ease;
}

/* Links have a fun underline animation */
.md-typeset a:not(.md-button):hover {
  color: var(--zombie-green) !important;
  text-decoration: underline wavy var(--blood-red) !important;
}


/* ----- 3. MORE COLOR VARIETY ----- */

/* Override primary colors with zombie theme */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--blood-red);
  --md-accent-fg-color: var(--slime-yellow);
}

/* Header with gradient */
.md-header {
  background: linear-gradient(135deg, var(--darker-bg) 0%, #1a0a0a 50%, var(--dark-bg) 100%) !important;
  border-bottom: 3px solid var(--blood-red);
}

/* Custom admonition colors */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: var(--zombie-green) !important;
}

.md-typeset .admonition.tip > .admonition-title,
.md-typeset details.tip > summary {
  background-color: rgba(74, 222, 128, 0.2) !important;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-color: var(--blood-red) !important;
}

.md-typeset .admonition.warning > .admonition-title,
.md-typeset details.warning > summary {
  background-color: rgba(220, 38, 38, 0.2) !important;
}

.md-typeset .admonition.info,
.md-typeset details.info {
  border-color: var(--zombie-purple) !important;
}

.md-typeset .admonition.info > .admonition-title,
.md-typeset details.info > summary {
  background-color: rgba(168, 85, 247, 0.2) !important;
}

/* Code block styling */
.md-typeset code {
  background-color: rgba(74, 222, 128, 0.1) !important;
  color: var(--zombie-green) !important;
  border-radius: 4px;
  padding: 2px 6px;
}

.md-typeset pre code {
  background-color: transparent !important;
  color: inherit !important;
}

/* Table styling */
.md-typeset table:not([class]) th {
  background-color: rgba(74, 222, 128, 0.2) !important;
  color: var(--zombie-green) !important;
  font-family: 'Bangers', cursive !important;
  letter-spacing: 1px;
}

/* Biohazard symbols scattered in background */
.md-content::before {
  content: "☣";
  position: fixed;
  top: 100px;
  right: 30px;
  font-size: 100px;
  color: rgba(250, 204, 21, 0.12);
  pointer-events: none;
  z-index: 0;
  transform: rotate(15deg);
  text-shadow:
    /* More biohazards at different positions */
    -400px 150px 0 rgba(220, 38, 38, 0.08),
    -150px 400px 0 rgba(250, 204, 21, 0.06),
    -600px 50px 0 rgba(74, 222, 128, 0.07),
    -300px -50px 0 rgba(220, 38, 38, 0.05),
    -500px 300px 0 rgba(250, 204, 21, 0.08),
    -100px 250px 0 rgba(168, 85, 247, 0.06);
  animation: biohazard-pulse 4s ease-in-out infinite;
}

@keyframes biohazard-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Skulls scattered around */
.md-content::after {
  content: "💀";
  position: fixed;
  bottom: 120px;
  left: 15px;
  font-size: 50px;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-15deg);
  opacity: 0.15;
  text-shadow:
    /* More skulls scattered */
    80px -200px 0 rgba(255,255,255,0.12),
    -20px -350px 0 rgba(255,255,255,0.1),
    650px -100px 0 rgba(255,255,255,0.08),
    600px -300px 0 rgba(255,255,255,0.1),
    200px -450px 0 rgba(255,255,255,0.07),
    500px 50px 0 rgba(255,255,255,0.09),
    300px -150px 0 rgba(255,255,255,0.06),
    750px -400px 0 rgba(255,255,255,0.08);
}


/* Biohazard bottom right */
.md-footer::before {
  content: "☣";
  position: fixed;
  bottom: 80px;
  right: 100px;
  font-size: 60px;
  color: rgba(220, 38, 38, 0.1);
  pointer-events: none;
  z-index: 0;
  transform: rotate(-10deg);
}

/* Zombie emoji - sidebar */
.md-sidebar--primary::after {
  content: "🧟";
  position: absolute;
  bottom: 60px;
  right: 5px;
  font-size: 35px;
  pointer-events: none;
  transform: scaleX(-1);
  opacity: 0.2;
}

/* More zombies scattered */
.md-main::before {
  content: "🧟";
  position: fixed;
  top: 150px;
  right: 40px;
  font-size: 45px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  text-shadow:
    -600px 100px 0 rgba(255,255,255,0.12),
    -200px 350px 0 rgba(255,255,255,0.1),
    -500px 450px 0 rgba(255,255,255,0.08),
    -100px 550px 0 rgba(255,255,255,0.1);
}

/* Zombie reaching from bottom */
.md-footer::after {
  content: "🧟";
  position: fixed;
  bottom: 20px;
  left: 50px;
  font-size: 55px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  transform: scaleX(-1);
}


/* ----- 4. CUSTOM SCROLLBAR ----- */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
  border-left: 1px solid var(--blood-red);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    var(--zombie-green) 0%,
    var(--zombie-green-dark) 50%,
    var(--blood-red) 100%);
  border-radius: 6px;
  border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
    var(--slime-yellow) 0%,
    var(--zombie-green) 50%,
    var(--blood-red) 100%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--zombie-green) var(--darker-bg);
}


/* ----- EXTRA FUN STUFF ----- */

/* Sidebar section headers */
.md-nav__title {
  font-family: 'Bangers', cursive !important;
  color: var(--slime-yellow) !important;
  letter-spacing: 1px;
}

/* Footer styling */
.md-footer {
  background: linear-gradient(135deg, var(--darker-bg) 0%, #1a0a0a 100%) !important;
  border-top: 2px solid var(--zombie-green);
}

/* Search bar */
.md-search__input {
  font-family: 'Grandstander', sans-serif !important;
}

.md-search__input::placeholder {
  color: rgba(74, 222, 128, 0.5) !important;
}

/* Level badges - make navigation items pop */
.md-nav__item--nested > .md-nav__link {
  font-family: 'Bangers', cursive !important;
  font-size: 1.1rem !important;
}

/* Copy button on code */
.md-clipboard {
  color: var(--zombie-green) !important;
}

.md-clipboard:hover {
  color: var(--slime-yellow) !important;
}

/* Tabs styling */
.md-typeset .tabbed-labels > label {
  font-family: 'Bangers', cursive !important;
}

/* Make the content area slightly more interesting */
.md-main__inner {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
}

/* Fun cursor on interactive elements */
.md-button,
.md-nav__link,
.md-typeset a {
  cursor: pointer;
}

/* Smooth transitions everywhere */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}


/* ===========================================
   ZOMBIEPEDIA - Trading Card Styles
   =========================================== */

.zombie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.zombie-card {
  background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zombie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.zombie-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.zombie-card.tier-easy::before {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.zombie-card.tier-medium::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.zombie-card.tier-hard::before {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.zombie-card.tier-boss::before {
  background: linear-gradient(90deg, #a855f7, #c084fc, #a855f7);
  animation: boss-glow 2s infinite;
}

.zombie-card.tier-secret::before {
  background: linear-gradient(90deg, #374151, #6b7280, #374151);
}

.zombie-card.tier-secret {
  filter: grayscale(0.8);
}

.zombie-card.tier-secret:hover {
  filter: grayscale(0.5);
}

@keyframes boss-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.zombie-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.zombie-card h3 {
  font-family: 'Bangers', cursive !important;
  font-size: 1.4rem !important;
  margin: 0 0 0.5rem 0 !important;
  color: #fff !important;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.zombie-card .stats {
  margin: 0.75rem 0;
}

.zombie-card .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

.zombie-card .stat .label {
  width: 70px;
  color: #9ca3af;
  font-size: 0.75rem;
}

.zombie-card .stat .bar {
  flex: 1;
  height: 8px;
  background: #374151;
  border-radius: 4px;
  overflow: hidden;
}

.zombie-card .stat .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--zombie-green), var(--slime-yellow));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.zombie-card.tier-hard .stat .bar span,
.zombie-card.tier-boss .stat .bar span {
  background: linear-gradient(90deg, #ef4444, #fbbf24);
}

.zombie-card .description {
  font-style: italic;
  color: #d1d5db;
  font-size: 0.9rem;
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--zombie-purple);
}

.zombie-card .weakness {
  color: var(--blood-red);
  font-size: 0.85rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.zombie-card .tactics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.zombie-card .tactic {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.zombie-card .tactic.good {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.zombie-card .tactic.ok {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.zombie-card .tactic.bad {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #ef4444;
}

.zombie-card .tactic.unknown {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid #6b7280;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .zombie-grid {
    grid-template-columns: 1fr;
  }

  .zombie-card img {
    height: 200px;
  }
}


/* ===========================================
   HERO BANNER + FOG EFFECT
   =========================================== */

.hero-banner {
  position: relative;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
  z-index: 0;
}

.hero-banner input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid var(--zombie-green);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#hero-boy:checked ~ .hero-image .hero-boy {
  opacity: 1;
}

#hero-girl:checked ~ .hero-image .hero-girl {
  opacity: 1;
}

.hero-tagline {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--slime-yellow);
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: -30px;
  position: relative;
  z-index: 1;
}

.hero-buttons label {
  padding: 0.5rem 1.5rem;
  background: var(--darker-bg);
  border: 2px solid var(--zombie-green);
  border-radius: 8px;
  color: var(--zombie-green);
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-buttons label:hover {
  background: rgba(74, 222, 128, 0.2);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

#hero-boy:checked ~ .hero-buttons label[for="hero-boy"],
#hero-girl:checked ~ .hero-buttons label[for="hero-girl"] {
  background: var(--zombie-green);
  color: var(--darker-bg);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
}

/* CSS Cloud Layers */
.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50%;
  filter: blur(30px);
}

.cloud-1 {
  width: 600px;
  height: 200px;
  top: 15%;
  left: 10%;
  opacity: 0.2;
  animation: drift-right 40s linear infinite;
}

.cloud-2 {
  width: 800px;
  height: 250px;
  top: 25%;
  left: 60%;
  opacity: 0.15;
  animation: drift-left 50s linear infinite;
}

.cloud-3 {
  width: 500px;
  height: 180px;
  top: 40%;
  left: -10%;
  background: var(--zombie-green);
  opacity: 0.12;
  animation: drift-right 35s linear infinite;
}

.cloud-4 {
  width: 700px;
  height: 220px;
  top: 10%;
  left: 30%;
  opacity: 0.18;
  animation: drift-left 45s linear infinite;
}

.cloud-5 {
  width: 550px;
  height: 190px;
  top: 55%;
  left: 50%;
  opacity: 0.14;
  animation: drift-right 38s linear infinite;
}

.cloud-6 {
  width: 650px;
  height: 210px;
  top: 70%;
  left: -5%;
  background: var(--zombie-green);
  opacity: 0.1;
  animation: drift-right 42s linear infinite;
}

.cloud-7 {
  width: 450px;
  height: 160px;
  top: 5%;
  left: 70%;
  opacity: 0.16;
  animation: drift-left 32s linear infinite;
}

.cloud-8 {
  width: 750px;
  height: 240px;
  top: 45%;
  left: 20%;
  opacity: 0.12;
  background: var(--zombie-green);
  animation: drift-left 55s linear infinite;
}

@keyframes drift-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(100vw); }
}

@keyframes drift-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100vw); }
}

/* Gameplay video */
.gameplay-video {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  border: 3px solid var(--zombie-green);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
  margin: 1rem 0;
}

/* Hide MkDocs footer attribution */
.md-footer-meta {
  display: none;
}
