/* Custom styles for Downtown Sneaks */

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

/* Base text color utility */
.text-cream-200 {
    color: rgba(253, 252, 248, 0.75);
}

/* Reveal animation - progressive enhancement, hidden by default */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(4, 7, 5, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-open .menu-line:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-open .menu-line:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* Gold shimmer on hover for cards */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

::-webkit-scrollbar-track {
    background: #040705;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #065f46, #d4a017);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #10b981, #f0d060);
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fdfcf8;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
        transition: none;
    }
}

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

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
