/* Custom styles for Edelweiss Campground */

:root {
    --color-coral-500: #ff4f44;
    --color-charcoal-900: #1a1c1f;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #1a1c1f;
}

::-webkit-scrollbar-thumb {
    background: #ff4f44;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f03a2e;
}

/* Selection color */
::selection {
    background: rgba(255, 79, 68, 0.3);
    color: #1a1c1f;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

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

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

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating animation for hero cards */
@media (prefers-reduced-motion: no-preference) {
    .float-animation-1 {
        animation: float 6s ease-in-out infinite;
    }
    .float-animation-2 {
        animation: float 6s ease-in-out infinite 1s;
    }
    .float-animation-3 {
        animation: float 6s ease-in-out infinite 2s;
    }
    .float-animation-4 {
        animation: float 6s ease-in-out infinite 3s;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(13, 14, 16, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
