/* Custom styles for Double Camp Recreation Area */

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.4);
    color: #f0fdfa;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Card hover glow */
.group:hover .group-hover\:border-teal-700 {
    border-color: rgba(45, 212, 191, 0.4) !important;
}

/* Subtle grain texture overlay (optional, for editorial feel) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

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

/* Floating cards animation */
@keyframes float1 {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-8px); }
}
@keyframes float2 {
    0%, 100% { transform: rotate(-1deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-6px); }
}
@keyframes float3 {
    0%, 100% { transform: rotate(1deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(-10px); }
}
@keyframes float4 {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-5px); }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 > div { animation: float1 6s ease-in-out infinite; }
    .absolute.top-32.right-32 > div { animation: float2 5s ease-in-out infinite; }
    .absolute.top-72.right-4 > div { animation: float3 7s ease-in-out infinite; }
    .absolute.bottom-8.right-24 > div { animation: float4 5.5s ease-in-out infinite; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}
