/* Eagles Landing Campground — Custom Styles */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations — progressive enhancement via JS */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(52, 212, 160, 0.08), 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3259;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #234273;
}

/* Selection */
::selection {
    background: rgba(52, 212, 160, 0.3);
    color: #f0fdf6;
}

/* Date input fix for dark theme */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(100deg);
    cursor: pointer;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f2038 0%, #1a3259 100%);
    min-height: 4px;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #34d4a0;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 20% 50%, rgba(52, 212, 160, 0.03) 0%, transparent 60%);
}

/* Smooth image transitions */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f0fdf6;
    -webkit-box-shadow: 0 0 0px 1000px #0f2038 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
