/* Custom styles for Boo and Bitty's Campground */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #042f2e;
}

/* Reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: content always visible if JS is disabled */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Navbar active state */
#navbar.scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Mobile menu animation */
#mobile-menu.open #menu-line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open #menu-line-2 {
  opacity: 0;
}
#mobile-menu.open #menu-line-3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Prevent layout shift on images */
img {
  content-visibility: auto;
}
