/* Menu Item Lightbox Styles - Extracted from menu/item.blade.php */
/* ============================================= */
/* Modern Lightbox */
.modern-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lightbox-title {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.lightbox-counter {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.lightbox-title-text {
    font-size: 18px;
    font-weight: 600;
}

.lightbox-controls {
    display: flex;
    gap: 10px;
}

.lightbox-control-btn,
.lightbox-close-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.lightbox-control-btn:hover,
.lightbox-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.lightbox-close-btn {
    background: rgba(220,38,38,0.2);
    border-color: rgba(220,38,38,0.3);
}

.lightbox-close-btn:hover {
    background: rgba(220,38,38,0.3);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: calc(100vh - 300px);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    z-index: 100001;
    opacity: 0.9;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lightbox-nav-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.8);
}

.lightbox-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
    transition: all 0.1s ease;
}

.lightbox-nav-left {
    left: 30px;
}

.lightbox-nav-right {
    right: 30px;
}

/* Smooth icon animations */
.lightbox-nav-btn i {
    transition: transform 0.2s ease;
}

.lightbox-nav-btn:hover i {
    transform: scale(1.1);
}

.lightbox-nav-left:hover i {
    transform: translateX(-2px) scale(1.1);
}

.lightbox-nav-right:hover i {
    transform: translateX(2px) scale(1.1);
}

/* Hide navigation buttons on small screens */
@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
        opacity: 0.8;
        background: rgba(0,0,0,0.7);
        border: 2px solid rgba(255,255,255,0.6);
    }
    
    .lightbox-nav-left {
        left: 15px;
    }
    
    .lightbox-nav-right {
        right: 15px;
    }
    
    .lightbox-nav-btn:hover {
        transform: translateY(-50%) scale(1.1);
        background: rgba(0,0,0,0.9);
    }
}

@media (max-width: 480px) {
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
        opacity: 0.8;
        background: rgba(0,0,0,0.8);
        border: 2px solid rgba(255,255,255,0.7);
    }
    
    .lightbox-nav-left {
        left: 10px;
    }
    
    .lightbox-nav-right {
        right: 10px;
    }
    
    .lightbox-nav-btn:hover {
        transform: translateY(-50%) scale(1.05);
        opacity: 1;
        background: rgba(0,0,0,0.9);
    }
}

#lightboxMainImage {
    max-width: 100%;
    max-height: calc(100vh - 300px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.lightbox-thumbnails {
    display: block;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 25px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 140px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.thumbnails-container {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    min-width: max-content;
    padding: 5px 0;
}

.thumbnail-item {
    display: block !important;
    width: 100px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    background: transparent !important;
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.thumbnail-item.active {
    border-color: #fd540f;
    box-shadow: 0 0 0 2px rgba(253, 84, 15, 0.4), 0 4px 20px rgba(253, 84, 15, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    background: transparent !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lightbox-header {
        padding: 15px 20px;
    }
    
    .thumbnails-container {
        justify-content: flex-start;
        gap: 12px;
    }
    
    .thumbnail-item {
        width: 85px;
        height: 64px;
    }
    
    .lightbox-thumbnails {
        padding: 20px;
        max-height: 120px;
    }
}

@media (max-width: 576px) {
    .lightbox-content {
        padding: 10px;
    }
    
    .thumbnail-item {
        width: 70px;
        height: 53px;
    }
    
    .lightbox-thumbnails {
        padding: 15px;
        max-height: 100px;
    }
    
    .thumbnails-container {
        gap: 10px;
    }
}
