/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Quicksand:wght@400;500;600;700&display=swap');

/* ===== Theme Park Variables ===== */
:root {
  --bg: #f5f7fa;
  --bg-light: #edf2f7;
  --accent: #0369a1;
  --accent-light: #0ea5e9;
  --park-orange: #f97316;
  --park-yellow: #facc15;
  --park-green: #22c55e;
  --park-purple: #a855f7;
  --park-pink: #ec4899;
  --park-red: #ef4444;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: #333;
}

h1, h2, h3, .card-title, .stat-value {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.04em;
}

/* ===== KILLERTIAN Side Nav ===== */
.navigation {
  position: fixed;
  top: 15px;
  bottom: 15px;
  left: 15px;
  background: #fff;
  width: 75px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 50;
  transition: width 0.5s;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.navigation.active {
  width: 250px;
}

/* Hamburger Toggle */
.menuToggle {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  padding: 0 23px;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.menuToggle::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-8px);
  transition: 0.5s;
}

.menuToggle::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(8px);
  box-shadow: 0 -8px 0 var(--accent);
  transition: 0.5s;
}

.navigation.active .menuToggle::before {
  transform: translateY(0) rotate(45deg);
}

.navigation.active .menuToggle::after {
  transform: translateY(0) rotate(-45deg);
  box-shadow: 0 0 0 var(--accent);
}

/* Brand text in toggle area */
.nav-brand {
  position: absolute;
  left: 65px;
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

.navigation.active .nav-brand {
  opacity: 1;
  visibility: visible;
}

/* Nav List */
.navigation ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.navigation ul li {
  list-style: none;
  position: relative;
  width: 100%;
  height: 70px;
  border-radius: 12px;
  border: 6px solid transparent;
  transition: 0.5s;
}

.navigation ul li.active {
  transform: translateX(28px);
  background: var(--bg);
  border-radius: 14px;
}

/* Concave corners on active */
.navigation ul li::before {
  content: '';
  position: absolute;
  top: -22px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-right-radius: 20px;
  box-shadow: 5px 5px 0 5px var(--bg);
  transform-origin: bottom right;
  transform: scale(0);
  transition: 0.5s;
}

.navigation ul li.active::before {
  right: 18px;
  transform: scale(1);
}

.navigation ul li::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-right-radius: 20px;
  box-shadow: 5px -5px 0 5px var(--bg);
  transform-origin: bottom right;
  transform: scale(0);
  transition: 0.5s;
}

.navigation ul li.active::after {
  right: 18px;
  transform: scale(1);
}

/* Nav Link */
.navigation ul li a {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  text-decoration: none;
  z-index: 10;
}

/* Icon Box */
.navigation ul li a .icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #fff;
  font-size: 1.6em;
  transition: 0.5s;
  color: #555;
}

.navigation ul li.active a .icon {
  color: #fff;
  background: var(--clr);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Colored pip dot */
.navigation ul li a .icon::after {
  content: '';
  position: absolute;
  top: 12px;
  left: -50px;
  width: 12px;
  height: 12px;
  background: var(--clr);
  border: 6px solid var(--bg);
  border-radius: 50%;
  opacity: 0;
  transition: 0.5s;
}

.navigation ul li.active a .icon::after {
  opacity: 1;
}

/* Text Label */
.navigation ul li a .text {
  position: relative;
  padding: 0 15px;
  color: #555;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

.navigation.active ul li a .text {
  visibility: visible;
  opacity: 1;
}

.navigation ul li.active a .text {
  color: #fff;
}

/* Nav Footer */
.nav-footer {
  padding: 12px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  flex-shrink: 0;
}

.nav-footer span {
  font-size: 0.7rem;
  color: #999;
  font-family: 'Quicksand', sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

.navigation.active .nav-footer span {
  opacity: 1;
  visibility: visible;
}

.nav-footer .footer-emoji {
  font-size: 1.4rem;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ===== Mobile Top Bar ===== */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-topbar .hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.mobile-topbar .brand {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 49;
}

.mobile-overlay.show {
  display: block;
}

/* ===== Main Content ===== */
.main-content {
  margin-left: 110px;
  padding: 20px 24px;
  min-height: 100vh;
  transition: margin-left 0.5s;
}

.main-content.expanded {
  margin-left: 290px;
}

/* ===== Theme Park Decorative ===== */
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}

.wiggle { animation: wiggle 2s ease-in-out infinite; }
.bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }
.float { animation: float 3s ease-in-out infinite; }

/* Orange Stripe Banner */
.orange-stripe {
  background: var(--park-orange);
  color: #fff;
  padding: 6px 16px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 8px;
  display: inline-block;
}

/* Colored section headers */
.section-banner {
  padding: 10px 24px;
  border-radius: 12px;
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: inline-block;
}

/* Park Hero */
.park-hero {
  background: linear-gradient(135deg, var(--park-orange) 0%, var(--park-yellow) 50%, var(--park-green) 100%);
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.park-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.park-hero > * {
  position: relative;
  z-index: 1;
}

.park-hero h1 {
  font-size: 3rem;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* Color Block Cards */
.color-card {
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.color-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.color-card .card-body h3 {
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.bg-park-orange { background: var(--park-orange); }
.bg-park-green { background: var(--park-green); }
.bg-park-purple { background: var(--park-purple); }
.bg-park-pink { background: var(--park-pink); }
.bg-park-yellow { background: #eab308; }
.bg-park-red { background: var(--park-red); }
.bg-park-blue { background: var(--accent); }

/* White content cards on blue bg */
.content-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

/* ===== Calendar Grid ===== */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 0;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.05em;
  color: var(--park-orange);
}
.cal-day {
  min-height: 85px;
  border-radius: 10px;
  padding: 4px;
  font-size: 0.75rem;
  background: white;
  transition: background 0.15s, transform 0.15s;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.cal-day:hover {
  background: #fef3c7;
  transform: scale(1.04);
  z-index: 2;
  position: relative;
}
.cal-day.today {
  border: 2px solid var(--park-orange);
  background: #fff7ed;
}
.cal-day.other-month {
  opacity: 0.3;
  background: #f1f5f9;
}
.cal-day-num {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 2px;
  font-family: 'Quicksand', sans-serif;
}
.cal-event {
  display: block;
  font-size: 0.6rem;
  padding: 2px 4px;
  margin-bottom: 1px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.1s;
  color: #fff;
}
.cal-event:hover {
  transform: scale(1.08);
}
.cal-event.type-community { background: #3b82f6; }
.cal-event.type-food { background: #ec4899; }
.cal-event.type-kids { background: #22c55e; }
.cal-event.type-sports { background: #6366f1; }
.cal-event.type-holiday { background: #ef4444; }
.cal-event.type-music { background: #f59e0b; }

/* ===== Footer ===== */
.park-footer {
  background: var(--accent);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  text-align: center;
  margin-top: 32px;
}

.park-footer a {
  color: var(--park-yellow);
  text-decoration: none;
  font-weight: 700;
}

.park-footer a:hover {
  text-decoration: underline;
}

/* ===== Breadcrumbs override ===== */
.breadcrumbs a, .breadcrumbs span {
  color: rgba(0, 0, 0, 0.5);
}
.breadcrumbs a:hover {
  color: rgba(0, 0, 0, 0.8);
}
.breadcrumbs li::before {
  color: rgba(0, 0, 0, 0.3) !important;
}

/* ===== Mobile ===== */
@media (max-width: 1023px) {
  .navigation {
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 0 20px 20px 0;
    transform: translateX(-100%);
    width: 250px;
  }

  .navigation.mobile-open {
    transform: translateX(0);
  }

  .navigation.mobile-open ul li a .text {
    visibility: visible;
    opacity: 1;
  }

  .navigation.mobile-open .nav-brand {
    opacity: 1;
    visibility: visible;
  }

  .navigation.mobile-open .nav-footer span {
    opacity: 1;
    visibility: visible;
  }

  .mobile-topbar {
    display: flex;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 12px;
  }

  .park-hero h1 {
    font-size: 2rem;
  }

  .cal-day {
    min-height: 55px;
  }
}

/* ===== Custom SVG Icons ===== */
.ep-icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Events Carousel ===== */
.events-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.events-carousel::-webkit-scrollbar {
  height: 6px;
}

.events-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.events-carousel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

.carousel-card {
  flex: 0 0 288px;
  max-width: 288px;
}
.carousel-card .color-card {
  height: 220px;
}
.carousel-card .card-body {
  overflow: hidden;
}
