/* ============================================
   DISH HIGHLIGHTS SLIDER - FULL SCREEN COMPONENT
   Mobile-optimized with touch/swipe support
   ============================================ */

/* Main Section - Full Viewport */
.dish-highlights-section {
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport for mobile browsers */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(180deg, 
        #fefefe 0%,
        rgba(196, 30, 58, 0.03) 30%,
        rgba(196, 30, 58, 0.05) 50%,
        rgba(196, 30, 58, 0.03) 70%,
        #fefefe 100%);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Decorative lines */
.dish-highlights-section::before,
.dish-highlights-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fab700 20%,
        #c41e3a 50%, 
        #fab700 80%,
        transparent 100%);
    opacity: 0.5;
}

.dish-highlights-section::before {
    top: 0;
}

.dish-highlights-section::after {
    bottom: 0;
}

/* Container for slider content */
#dish-highlights-slider {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Header */
.dish-highlights-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.dish-highlights-header .header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c41e3a, #a41830);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.dish-highlights-header h3 {
    font-size: 2.5rem;
    color: #c41e3a;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.2;
}

.dish-highlights-header p {
    color: #666;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Pills */
.dish-highlight-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.highlight-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(196, 30, 58, 0.08);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 50px;
    font-size: 14px;
    color: #c41e3a;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.highlight-category-pill:hover,
.highlight-category-pill:active {
    background: #c41e3a;
    color: white;
    transform: scale(1.05);
}

.highlight-category-pill i {
    font-size: 16px;
}

/* Slider Container */
.dish-slider-container {
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.dish-slider-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 10px 0;
}

.dish-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.dish-slider-wrapper:active {
    cursor: grabbing;
}

/* Slider Track */
.dish-slider-track {
    display: flex;
    gap: 24px;
    padding: 10px 40px;
    width: max-content;
    animation: autoSlide 40s linear infinite;
    will-change: transform;
}

/* Pause animation on interaction */
.dish-slider-wrapper:hover .dish-slider-track,
.dish-slider-track.paused {
    animation-play-state: paused;
}

/* Animation slides by 1/3 since we have 3 copies of the items */
@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* Dish Cards */
.dish-highlight-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.dish-highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.dish-highlight-card:active {
    transform: scale(0.98);
}

/* Card Image */
.dish-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.dish-card-image .dish-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(196, 30, 58, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-card-image .dish-number {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fab700;
    color: #1a1a1a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* Card Content */
.dish-card-content {
    padding: 20px;
}

.dish-card-content h4 {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.dish-card-content .dish-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-card-content .dish-price {
    font-size: 1.125rem;
    color: #c41e3a;
    font-weight: 700;
}

.dish-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.dish-card-footer .view-menu-link {
    font-size: 14px;
    color: #c41e3a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-card-footer .view-menu-link i {
    transition: transform 0.2s ease;
}

.dish-highlight-card:hover .view-menu-link i {
    transform: translateX(4px);
}

/* Swipe Hint */
.slider-swipe-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    color: #888;
    font-size: 14px;
    animation: hintPulse 2s ease-in-out infinite;
}

.slider-swipe-hint i {
    font-size: 20px;
    animation: swipeIcon 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes swipeIcon {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}

/* CTA Button */
.dish-highlights-cta {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.dish-highlights-cta .btn {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* Loading State */
.dish-slider-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    gap: 20px;
    color: #888;
}

.dish-slider-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(196, 30, 58, 0.2);
    border-top-color: #c41e3a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error State */
.dish-slider-error {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.dish-slider-error i {
    font-size: 48px;
    color: #ff9800;
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .dish-highlights-section {
        min-height: auto;
        padding: 50px 0;
    }
    
    .dish-highlights-header h3 {
        font-size: 2rem;
    }
    
    .dish-highlight-card {
        flex: 0 0 280px;
    }
    
    .dish-card-image {
        height: 170px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .dish-highlights-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px 0;
    }
    
    .dish-highlights-header {
        margin-bottom: 30px;
        padding: 0 16px;
    }
    
    .dish-highlights-header .header-badge {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .dish-highlights-header h3 {
        font-size: 1.5rem;
    }
    
    .dish-highlights-header p {
        font-size: 1rem;
    }
    
    .dish-highlight-categories {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 16px 10px;
        margin-bottom: 30px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .highlight-category-pill {
        padding: 8px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .dish-slider-track {
        gap: 16px;
        padding: 10px 20px;
        animation-duration: 30s;
    }
    
    .dish-highlight-card {
        flex: 0 0 260px;
    }
    
    .dish-card-image {
        height: 160px;
    }
    
    .dish-card-content {
        padding: 16px;
    }
    
    .dish-card-content h4 {
        font-size: 1rem;
    }
    
    .dish-card-content .dish-description {
        font-size: 13px;
    }
    
    .dish-highlights-cta {
        margin-top: 40px;
    }
    
    .dish-highlights-cta .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .dish-highlights-section {
        padding: 30px 0;
    }
    
    .dish-highlights-header h3 {
        font-size: 1.25rem;
    }
    
    .dish-highlights-header p {
        font-size: 0.9rem;
    }
    
    .dish-slider-track {
        gap: 12px;
        padding: 10px 16px;
        animation-duration: 25s;
    }
    
    .dish-highlight-card {
        flex: 0 0 220px;
    }
    
    .dish-card-image {
        height: 130px;
    }
    
    .dish-card-image .dish-category-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .dish-card-image .dish-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .dish-card-content {
        padding: 12px;
    }
    
    .dish-card-content h4 {
        font-size: 0.9rem;
    }
    
    .dish-card-content .dish-description {
        font-size: 12px;
    }
    
    .dish-card-content .dish-price {
        font-size: 1rem;
    }
    
    .dish-slider-loading {
        min-height: 300px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover animations on touch */
    .dish-highlight-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }
    
    .dish-highlight-card:hover .dish-card-image img {
        transform: none;
    }
    
    /* Use active state instead */
    .dish-highlight-card:active {
        transform: scale(0.97);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Make slider wrapper scrollable */
    .dish-slider-wrapper {
        cursor: default;
    }
    
    /* Keep animation running on touch devices too - slides by 1/3 for 3 copies */
    .dish-slider-track {
        animation: autoSlide 35s linear infinite;
    }
    
    /* Pause animation only when user is actively touching */
    .dish-slider-track.user-touching {
        animation-play-state: paused;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .dish-slider-track {
        animation: none;
    }
    
    .slider-swipe-hint,
    .slider-swipe-hint i {
        animation: none;
    }
    
    .dish-highlight-card,
    .dish-card-image img {
        transition: none;
    }
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .dish-highlights-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .dish-highlights-header {
        margin-bottom: 15px;
    }
    
    .dish-highlights-header h3 {
        font-size: 1.25rem;
    }
    
    .dish-highlight-categories {
        margin-bottom: 15px;
    }
    
    .dish-highlight-card {
        flex: 0 0 200px;
    }
    
    .dish-card-image {
        height: 100px;
    }
    
    .dish-highlights-cta {
        margin-top: 20px;
    }
}

/* ============================================
   NOTCHED DEVICES (iPhone X+)
   ============================================ */
@supports (padding: max(0px)) {
    .dish-highlights-section {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}
