/* Custom styles for Donner Creek Campground */

html {
    scroll-behavior: smooth;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f1e4a;
}
::-webkit-scrollbar-thumb {
    background: #2abf76;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #55d494;
}

/* Selection color */
::selection {
    background: #55d494;
    color: #0f1e4a;
}

/* Body background pattern */
body {
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 30, 74, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav link hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #55d494;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #55d494;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle card lift on hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.05);
}

/* Ensure hero images don't shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    #navbar {
        position: relative;
    }
    .no-print {
        display: none;
    }
}
