/* Custom styles for Crossroads Magic House */

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

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

::-webkit-scrollbar-track {
    background: #03130d;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1a3a22;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf8f4;
}

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

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Reveal animations (progressive enhancement - only active with JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

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

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: url('data:image/svg+xml,%3Csvg width=\'40\' height=\'40\' viewBox=\'0 0 40 40\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'%23d4a843\' fill-opacity=\'0.03\' fill-rule=\'evenodd\'%3E%3Cpath d=\'M0 40L40 0H20L0 20M40 40V20L20 40\'/%3E%3C/g%3E%3C/svg%3E');
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ripple:hover::after {
    opacity: 1;
}

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

/* Navbar glass effect */
.nav-glass {
    background: rgba(3, 19, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile menu animation */
.mobile-menu-open {
    animation: menuSlideIn 0.4s ease forwards;
}

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

/* Reduce 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;
    }
}
