/* ===== Custom Styles for CrockSpot ===== */

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

/* Custom selection color */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #f0f3fa;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #2c4a8f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Reveal animations - progressive enhancement only */
@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;
    }
}

/* If JS is disabled or reduced motion preferred, all content is already visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer effect on hover for buttons */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy loading fade */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"][src] {
    opacity: 1;
}

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

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

/* Subtle gold accent line animation */
.gold-line {
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
