/* ============================================================
   MURDERCAT.WIN — Global Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --black:        #0a0a0f;
  --dark:         #12121a;
  --card-bg:      #1a1a26;
  --border:       #2a2a3e;
  --red:          #c0392b;
  --red-bright:   #e74c3c;
  --red-glow:     rgba(231, 76, 60, 0.25);
  --yellow:       #f1c40f;
  --eye-green:    #39ff14;
  --text:         #dcdce8;
  --text-muted:   #888899;
  --font-heading: 'Creepster', 'Georgia', serif;
  --font-body:    'Segoe UI', system-ui, sans-serif;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
}

/* ---------- Google Font Import (Creepster) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-bright);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--yellow); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

.text-red    { color: var(--red-bright); }
.text-yellow { color: var(--yellow); }
.text-muted  { color: var(--text-muted); }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* ---------- Card ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 16px var(--red-glow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-size: 1rem;
}
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-outline {
  background: transparent;
  color: var(--red-bright);
  border-color: var(--red-bright);
}
.btn-outline:hover {
  background: var(--red-glow);
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(192, 57, 43, 0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px var(--red-glow);
}
.logo-text span {
  color: var(--yellow);
}

/* Nav */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.05);
}
.site-nav a.active {
  border-bottom: 2px solid var(--red-bright);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.5rem; }
  .site-nav a { padding: 0.6rem 0.5rem; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(192, 57, 43, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  text-shadow: 0 0 30px var(--red-glow), 0 2px 4px #000;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-image {
  margin: 2.5rem auto;
  max-width: 320px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Scratch Divider ---------- */
.scratch-divider {
  width: 100%;
  height: 40px;
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
}
.scratch-divider svg {
  width: 100%;
  height: 100%;
}

/* ---------- Danger Warning Banner ---------- */
.warning-banner {
  background: repeating-linear-gradient(
    45deg,
    var(--red) 0,
    var(--red) 12px,
    var(--black) 12px,
    var(--black) 24px
  );
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

/* ---------- Stats / Fun Facts ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--red-bright);
  display: block;
  text-shadow: 0 0 12px var(--red-glow);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ---------- COMIC STRIP ---------- */
.comic-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comic-panel {
  background: #fff;
  border: 3px solid #111;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.comic-panel svg {
  width: 100%;
  height: 100%;
}
.comic-caption {
  background: #fff;
  border-top: 2px solid #111;
  color: #111;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  text-align: center;
  font-weight: 700;
}
.comic-title-panel {
  grid-column: 1 / -1;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.06em;
  text-shadow: 3px 3px 0 #000;
}
.speech-bubble {
  position: absolute;
  background: white;
  border: 2.5px solid #111;
  border-radius: 12px;
  padding: 4px 8px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.72rem;
  font-weight: 700;
  color: #111;
  z-index: 10;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #111;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid white;
  z-index: 1;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px var(--red-glow);
}
.gallery-item svg,
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-item-label {
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.lightbox.open {
  opacity: 1;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--red-glow);
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--red-bright);
  color: var(--red-bright);
  outline: none;
}

/* ---------- Timeline (About) ---------- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.timeline li {
  position: relative;
  margin-bottom: 2rem;
}
.timeline li::before {
  content: '🐾';
  position: absolute;
  left: -2rem;
  top: 0.1rem;
  font-size: 1rem;
}
.timeline-year {
  font-family: var(--font-heading);
  color: var(--red-bright);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.timeline-text {
  color: var(--text);
}

/* ---------- Profile Box ---------- */
.profile-box {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-image {
  flex: 0 0 260px;
}
.profile-details { flex: 1 1 260px; }
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.profile-table th,
.profile-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}
.profile-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
}
.profile-table td {
  color: var(--text);
  font-weight: 600;
}

/* ---------- "Wanted" Poster ---------- */
.wanted-poster {
  background: #f5e6c8;
  color: #3a2a10;
  border: 6px solid #8b6914;
  border-radius: 4px;
  padding: 2rem;
  max-width: 320px;
  text-align: center;
  box-shadow: 8px 8px 0 #000;
  margin: 0 auto;
  font-family: 'Georgia', serif;
}
.wanted-poster .wanted-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--red);
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.wanted-poster .wanted-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #5a4020;
  margin-bottom: 1rem;
}
.wanted-poster .wanted-reward {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--red);
  margin-top: 1rem;
  border-top: 2px dashed #8b6914;
  padding-top: 0.75rem;
}
.wanted-poster p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ---------- Paw Print Trail Decoration ---------- */
.paw-trail {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
  font-size: 1.8rem;
  opacity: 0.3;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--dark);
  border-top: 2px solid var(--red);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  box-shadow: 0 -2px 16px rgba(192, 57, 43, 0.3);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--red-bright);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.4rem;
}
.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col ul a:hover { color: var(--yellow); }
.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom .claw-marks {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a0a0a 100%);
  border-bottom: 2px solid var(--border);
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(192, 57, 43, 0.15) 0%, transparent 65%);
}
.page-hero h1 {
  position: relative;
  text-shadow: 0 0 20px var(--red-glow);
  margin-bottom: 0.5rem;
}
.page-hero .subtitle {
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: var(--text-muted); }

/* ---------- Scroll-reveal fade-in ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Glowing eye animation ---------- */
@keyframes eye-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.glow-eye {
  animation: eye-pulse 2.5s ease-in-out infinite;
}

/* ---------- Scratch animation ---------- */
@keyframes scratch-in {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
.scratch-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: scratch-in 0.8s ease forwards;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .profile-box { flex-direction: column; }
  .profile-image { flex: 0 0 auto; max-width: 220px; margin: 0 auto; }
  .comic-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .comic-strip { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
