/* Custom styles for Exchange Pantry */

:root {
    --gold-400: #e0b832;
    --gold-500: #d4a853;
    --gold-600: #c4922e;
    --navy-950: #060d1f;
    --navy-900: #0a1628;
    --navy-800: #0f1f3a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--navy-950);
    color: #fff;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-on-scroll.revealed {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.1s, transform 0.1s;
    }
}

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

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

/* Subtle pulse for hero CTA */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(212, 168, 83, 0); }
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover img {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

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