/* Custom styles for Salmon Run Campground */

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

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

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

::-webkit-scrollbar-thumb {
    background: #FF6B5B;
    border-radius: 5px;
}

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

/* Navigation transition */
#navbar.scrolled {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Accent line animation */
.accent-line {
    position: relative;
    display: inline-block;
}

.accent-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B5B;
    transition: width 0.3s ease;
}

.accent-line:hover::after {
    width: 100%;
}

/* Parallax effect for hero */
#hero {
    background-attachment: fixed;
}

/* Custom selection color */
::selection {
    background: #FF6B5B;
    color: white;
}

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

/* Reduced motion preference */
@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 {
    #navbar,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
    
    .font-serif {
        font-size: 2.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
