/* Custom styles for Sunny Trails RV Park */

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

/* Selection color */
::selection {
    background: rgba(200, 138, 46, 0.3);
    color: #f5eac8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 138, 46, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 138, 46, 0.5);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #eab854 0%, #c88a2e 50%, #b07020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle gold shimmer on hover for cards */
.group:hover .group-hover\:border-gold-400\/50 {
    border-color: rgba(200, 138, 46, 0.5);
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(4, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 138, 46, 0.1);
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(200, 138, 46, 0.6);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Gold accent line animation */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 3rem; }
}

.gold-line-animated {
    animation: expandWidth 0.6s ease-out forwards;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #0f1f38 0%, #152a4a 100%);
}

/* Ensure text contrast on all backgrounds */
.bg-navy-950,
.bg-navy-900,
.bg-navy-800 {
    color: #f5eac8;
}

/* Input autofill styling for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a1628 inset !important;
    -webkit-text-fill-color: #f5eac8 !important;
}
