/* Menu Item Gallery Styles - Extracted from menu/item.blade.php */
/* ============================================= */

/* Modern Gallery Styles */
.modern-gallery-section {
    margin: 30px 0;
    position: relative;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8fafc;
}

.gallery-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #011166;
    font-size: 24px;
    font-weight: 700;
}

.gallery-title i {
    color: #fd540f;
    font-size: 20px;
}

.gallery-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin-left: 8px;
}

.gallery-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-page-info {
    font-size: 14px;
    color: #64748b;
    background: rgba(100,116,139,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.modern-gallery-container {
    position: relative;
}

/* Horizontal Gallery Layout */
.horizontal-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-horizontal-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(248,250,252,0.5);
    padding: 15px;
}

.gallery-horizontal-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.horizontal-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
}

.horizontal-gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    border-radius: 12px;
    min-height: 280px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    display: block;
    background: #f3f4f6;
}

.horizontal-gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253,84,15,0.9), rgba(32,177,219,0.9));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.horizontal-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.horizontal-gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-expand-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-expand-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.gallery-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* Navigation Buttons */
.gallery-nav-btn {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229,231,235,0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    background: linear-gradient(135deg, #fd540f, #20b1db);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(253,84,15,0.3);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-nav-btn:disabled:hover {
    background: rgba(255,255,255,0.9);
    color: #374151;
    transform: none;
}

/* Gallery Indicators */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(100,116,139,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator:hover {
    background: rgba(100,116,139,0.6);
    transform: scale(1.2);
}

.gallery-indicator.active {
    background: linear-gradient(135deg, #fd540f, #20b1db);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(253,84,15,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-horizontal-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-image-container {
        min-height: 220px;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .gallery-title {
        font-size: 20px;
    }
    
    .gallery-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .horizontal-gallery-wrapper {
        gap: 10px;
    }
    
    .gallery-horizontal-container {
        padding: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-horizontal-track {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-image-container {
        min-height: 250px;
    }
    
    .gallery-title {
        font-size: 18px;
    }
    
    .gallery-title i {
        font-size: 16px;
    }
    
    .gallery-count {
        font-size: 12px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .gallery-expand-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .gallery-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}
