/* Custom styles for Panadería El Tarascó */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fcd34d, #fbbf24);
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fcd34d;
}

/* Pulse animation for hero decorative elements */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Bounce animation for map pin */
@keyframes bounce-slow {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Scroll reveal base styles - content is VISIBLE by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Only apply hidden state when JS adds the class - progressive enhancement */
.reveal-up.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-left.is-hidden {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal-right.is-hidden {
    opacity: 0;
    transform: translateX(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up.is-hidden,
    .reveal-left.is-hidden,
    .reveal-right.is-hidden {
        opacity: 1;
        transform: none;
    }
    
    .animate-pulse-slow,
    .animate-bounce-slow {
        animation: none;
        opacity: 0.3;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-110,
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Card hover glow effect */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #1e1e1e 0%, #141414 100%);
}

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

/* Subtle gold divider */
.gold-divider {
    position: relative;
}

.gold-divider::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}
