/* Custom styles for Bluesky Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5e8;
}
::-webkit-scrollbar-thumb {
    background: #c06c36;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85528;
}

/* Stat card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 1s;
}
.stat-card:nth-child(3) {
    animation: float 6s ease-in-out infinite 2s;
}

/* Scroll reveal (progressive enhancement — only for below-fold content) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease;
}
#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
}
#mobile-menu:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(192, 108, 54, 0.1);
}

/* Image hover zoom */
aspect-ratio {
    display: block;
}

/* Selection color */
::selection {
    background: #c06c36;
    color: #fdfbf7;
}
