/* Dishes Clean Carousel Styles - Patate Lou-Lou */

/* Enhanced dish carousel with smooth scrolling */
.dishes-conveyor {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.dishes-conveyor::-webkit-scrollbar {
    display: none;
}

/* Dish card hover effects */
.dish-card {
    flex: 0 0 350px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.dish-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.dish-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dish-card:hover .dish-image img {
    transform: scale(1.08);
}

/* Dish content styling */
.dish-content {
    padding: 1.5rem;
}

.dish-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.dish-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Order button styling */
.dish-order-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dish-order-btn::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;
}

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

.dish-order-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 110, 13, 0.3);
}

/* Navigation arrows - Side positioned */
.dishes-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1000;
    padding: 0 20px;
}

.arrow-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    pointer-events: auto;
    opacity: 0.9;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.1);
}

.arrow-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    opacity: 1;
}

.arrow-btn:active {
    transform: translateY(-1px);
}

.arrow-btn.prev {
    margin-left: 0;
}

.arrow-btn.next {
    margin-right: 0;
}

/* Invisible clickable areas for mobile swipe */
.dishes-arrow-left,
.dishes-arrow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dishes-arrow-left {
    left: -20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 100%);
}

.dishes-arrow-right {
    right: -20px;
    background: linear-gradient(270deg, rgba(0,0,0,0.1) 0%, transparent 100%);
}

/* Show arrows on hover for desktop */
@media (min-width: 769px) {
    .dishes:hover .dishes-arrow-left,
    .dishes:hover .dishes-arrow-right {
        opacity: 0.7;
    }
    
    .dishes-arrow-left:hover,
    .dishes-arrow-right:hover {
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .dishes-conveyor {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-snap-type: x mandatory;
    }
    
    .dish-card {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
    
    .dish-image {
        height: 180px;
    }
    
    .dish-content {
        padding: 1.25rem;
    }
    
    .dish-content h3 {
        font-size: 1.2rem;
    }
    
    .dish-content p {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .dishes-arrow-left,
    .dishes-arrow-right {
        width: 60px;
    }
    
    /* Hide side arrows on mobile, use swipe instead */
    .dishes-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .dish-card {
        flex: 0 0 280px;
    }
    
    .dish-image {
        height: 160px;
    }
    
    .dish-content {
        padding: 1rem;
    }
    
    .dish-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .dish-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .dish-order-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* CTA section styling */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cta-section .btn {
    font-size: 1.1rem;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-light);
}

.cta-section .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(234, 110, 13, 0.3);
}

/* Loading state for images */
.dish-image img {
    background-color: var(--light-gray);
}

.dish-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dish-image img[loading="lazy"].loaded {
    opacity: 1;
}
