/* =========================================================
   THE LUCKY LOP — SITE-WIDE STYLESHEET
   Shared by every page. Keep this one file in sync across
   the whole site so the look stays consistent.
   ========================================================= */

:root {
  --sky-top: #3aa8e0;
  --sky-bottom: #8fd6f5;
  --red: #ee4630;
  --yellow: #ffd400;
  --ink: #111111;
  --grass-dark: #2f7d2a;
  --grass: #59a83f;
  --card-bg: #ffffff;
  --available: #2f8f4e;
  --reserved: #e0972a;
  --adopted: #7a7a7a;
  --unavailable: #c0392b;
  --max-width: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Baloo 2', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 55%, var(--sky-bottom) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- decorative clouds (fixed, behind everything) ---------- */
.puff { position: absolute; background: #fff; border-radius: 50%; opacity: 0.85; }
.cloud { position: fixed; z-index: 0; pointer-events: none; }
.cloud .puff:nth-child(1) { width: 70px; height: 70px; left: 0; top: 20px; }
.cloud .puff:nth-child(2) { width: 100px; height: 100px; left: 45px; top: 0; }
.cloud .puff:nth-child(3) { width: 70px; height: 70px; left: 120px; top: 22px; }
.cloud .puff:nth-child(4) { width: 130px; height: 40px; left: 15px; top: 55px; border-radius: 30px; }
.cloud.c1 { top: 90px; left: -40px; transform: scale(0.8); }
.cloud.c2 { top: 140px; right: -50px; transform: scale(0.55); opacity: 0.75; }
.cloud.c3 { top: 320px; left: -60px; transform: scale(0.45); opacity: 0.6; }

/* ---------- grass footer strip (fixed) ---------- */
.grass {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: var(--grass);
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(0% 40%, 5% 30%, 12% 42%, 20% 25%, 30% 38%, 40% 22%, 50% 36%, 60% 20%, 70% 34%, 80% 24%, 90% 38%, 100% 26%, 100% 100%, 0% 100%);
}
.grass::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grass-dark);
  clip-path: polygon(0% 55%, 8% 46%, 16% 58%, 26% 44%, 36% 56%, 46% 42%, 56% 55%, 66% 40%, 76% 54%, 86% 44%, 96% 57%, 100% 48%, 100% 100%, 0% 100%);
}
.grass .flower { position: absolute; bottom: 26px; width: 8px; height: 8px; border-radius: 50%; }

/* ---------- layout wrapper ---------- */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px 140px;
}

.narrow { max-width: 720px; margin: 0 auto; }

/* ---------- header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 16px;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 3px 4px 0 rgba(17, 17, 17, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}

.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand span {
  font-family: 'Luckiest Guy', cursive;
  color: var(--red);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 3px; background: var(--ink); margin: 0 auto; border-radius: 2px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background-color 140ms ease, color 140ms ease;
}
.site-nav a:hover { background: var(--yellow); }
.site-nav a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.site-nav a.current { background: var(--red); color: #fff; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: 3px 4px 0 rgba(17,17,17,0.85);
    flex-direction: column;
    padding: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
}

/* ---------- headings ---------- */
.comic-heading {
  font-family: 'Luckiest Guy', cursive;
  color: var(--red);
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1.comic-heading { font-size: clamp(2rem, 6vw, 3rem); text-align: center; margin-bottom: 10px; }
h2.comic-heading { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin-bottom: 14px; }
h3.comic-heading { font-size: clamp(1.1rem, 3.5vw, 1.4rem); margin-bottom: 8px; }

.script-heading {
  font-family: 'Permanent Marker', cursive;
  color: var(--yellow);
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}

/* ---------- hero banner (logo panel) ---------- */
.logo-banner-outer {
  background: var(--ink);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 55% 82%, 50% 100%, 45% 82%, 0% 100%);
  padding: 5px;
  max-width: 320px;
  margin: 28px auto 20px;
}
.logo-banner-inner {
  background: #fff;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 55% 82%, 50% 100%, 45% 82%, 0% 100%);
  padding: 18px 18px 32px;
}
.logo-banner-inner img { width: 100%; max-width: 260px; margin: 0 auto; }

/* ---------- badges & panels ---------- */
.badge {
  display: inline-block;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(-2deg);
}

.panel {
  background: rgba(255,255,255,0.95);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 3px 4px 0 rgba(17,17,17,0.5);
}

.section { margin: 40px 0; text-align: center; }
.section-text { max-width: 640px; margin: 0 auto; font-weight: 600; font-size: 0.98rem; }

/* ---------- link bubbles (buttons) ---------- */
.links { display: flex; flex-direction: column; gap: 16px; margin: 26px 0; }

.bubble {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  box-shadow: 4px 5px 0 rgba(17,17,17,0.9);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.links a:nth-child(2n) .bubble, .links a:nth-child(2n) { --tilt: -1.4deg; }
.links a:nth-child(2n+1) { --tilt: 1.4deg; }
.bubble { transform: rotate(var(--tilt, 1deg)); }
.bubble:hover, .bubble:focus-visible { transform: rotate(0deg) translateY(-3px); box-shadow: 6px 8px 0 rgba(17,17,17,0.9); }
.bubble:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.bubble.carrot { background: #ff8a3d; border-radius: 8px 60px 8px 60px; }
.bubble.carrot::before { content: "🥕 "; }
.bubble.facebook { background: #e9f2ff; }

/* small inline button variant, used for "Read more" / "Learn more" etc */
.btn-small {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 rgba(17,17,17,0.85);
  transition: transform 140ms ease;
}
.btn-small:hover, .btn-small:focus-visible { transform: translateY(-2px); }
.btn-small:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-small.alt { background: var(--yellow); color: var(--ink); }

/* ---------- generic card grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 24px 0; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 4px 5px 0 rgba(17,17,17,0.85);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 190px; object-fit: cover; border-bottom: 3px solid var(--ink); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* ---------- rabbit cards ---------- */
.status-tag {
  display: inline-block;
  align-self: flex-start;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 10px;
}
.status-available { background: var(--available); }
.status-reserved { background: var(--reserved); }
.status-adopted { background: var(--adopted); }
.status-unavailable { background: var(--unavailable); }

.rabbit-facts { font-size: 0.85rem; font-weight: 600; }
.rabbit-facts b { color: var(--red); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
@media (min-width: 620px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 3px 4px 0 rgba(17,17,17,0.8);
  background: #fff;
}
.gallery-item img { width: 100%; height: 140px; object-fit: cover; transition: transform 200ms ease; }
.gallery-item:hover img { transform: scale(1.06); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }
.filter-btn {
  background: #fff; border: 3px solid var(--ink); border-radius: 14px;
  padding: 7px 14px; font-weight: 800; font-size: 0.82rem; cursor: pointer;
}
.filter-btn.active { background: var(--red); color: #fff; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 78vh; border: 4px solid #fff; border-radius: 10px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 10px; font-weight: 700; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: #fff; border: 3px solid var(--ink); border-radius: 50%;
  width: 42px; height: 42px; font-weight: 900; font-size: 1.1rem; cursor: pointer;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- blog ---------- */
.post-meta { font-size: 0.78rem; font-weight: 700; color: #444; }
.post-excerpt { font-size: 0.9rem; }
.post-content { font-size: 1rem; line-height: 1.7; }
.post-content p { margin-bottom: 16px; }
.post-content img { border: 3px solid var(--ink); border-radius: 14px; margin: 18px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 0.7rem; font-weight: 800; background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 8px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 18px 110px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a3350;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 10px; }
.site-footer .footer-links a { text-decoration: underline; }

/* ---------- fade-in animation ---------- */
.fade-in { animation: fadeInUp 500ms ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; }
  .bubble, .btn-small, .gallery-item img { transition: none; }
  }
