/* Custom styles for Wildcat Campground */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d21;
}
::-webkit-scrollbar-thumb {
    background: #3d4249;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8645a;
}

/* Hero parallax-like effect */
#hero {
    background-attachment: fixed;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(26, 29, 33, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Subtle grid pattern overlay */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Coral glow effect */
.glow-coral {
    box-shadow: 0 0 40px rgba(232, 100, 90, 0.15);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e8645a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation utilities */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-float {
        animation: none;
    }
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Image loading placeholder */
img {
    background-color: #2c3036;
}

/* Selection color */
::selection {
    background-color: rgba(232, 100, 90, 0.3);
    color: #ffffff;
}
