/* Additional custom styles for Birria & Antojitos */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5D3A5C, #B8860B);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6f305a, #a07409);
}

/* Selection color */
::selection {
    background: #B8860B;
    color: #2a1626;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #B8860B;
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Hover effects for interactive elements */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card hover effects */
.card-hover {
    position: relative;
}

.card-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #B8860B, #a07409);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-hover:hover::after {
    transform: scaleX(1);
}

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

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

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(93, 58, 92, 0.15);
}

/* Decorative pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 25% 25%, rgba(184, 134, 11, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(93, 58, 92, 0.05) 0%, transparent 50%);
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(135deg, #5D3A5C, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect for buttons */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.4);
}

/* Loading state for form */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fdf8e8;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-text {
        padding: 2rem 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-divider {
        height: 2px;
    }
}

/* Print styles */
@media print {
    nav,
    .scroll-indicator,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-split {
        min-height: auto;
    }
}
