/* The Taste BBQ - Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

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

::-webkit-scrollbar-thumb {
    background: #8B0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #654321;
}

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

/* Body font */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Hover effects for menu items */
.menu-item-card {
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-5px);
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

/* Navigation shadow */
nav {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero section background texture */
.hero-bg {
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Menu category buttons animation */
.menu-category-btn.active {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cart animation */
#cart-count {
    transition: all 0.3s ease;
}

.cart-bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Card shadows */
.card-shadow {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-shadow:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Price highlight */
.price-highlight {
    background: linear-gradient(45deg, #8B0000, #FF6347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Allergen tags */
.allergen-tag {
    background: linear-gradient(45deg, #FFF3CD, #FFEAA7);
    border: 1px solid #F39C12;
}

/* Availability badges */
.available-badge {
    background: linear-gradient(45deg, #D4F8E8, #A7F3D0);
    border: 1px solid #10B981;
}

.sold-out-badge {
    background: linear-gradient(45deg, #FED7D7, #FCA5A5);
    border: 1px solid #EF4444;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #FF6347;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8B0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    nav, .cart-modal, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-bbq-red {
        background-color: #000000 !important;
    }
    
    .bg-bbq-brown {
        background-color: #333333 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-texture {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(139, 0, 0, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.border-bbq {
    border-color: #8B0000;
}

/* Notification styles */
.notification-enter {
    transform: translateX(100%);
    opacity: 0;
}

.notification-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

.notification-exit {
    transform: translateX(0);
    opacity: 1;
}

.notification-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}