/**
 * Screenshots Gallery Styles
 * 后台截图横向滚动展示区域
 */

/* Scroll Container */
.screenshots-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem;
    margin: 0 -1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--yali-primary) var(--yali-border);
}

.screenshots-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-scroll-container::-webkit-scrollbar-track {
    background: var(--yali-border);
    border-radius: 4px;
    margin: 0 1rem;
}

.screenshots-scroll-container::-webkit-scrollbar-thumb {
    background: var(--yali-primary);
    border-radius: 4px;
}

/* Track */
.screenshots-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    width: max-content;
}

/* Screenshot Item */
.screenshot-item {
    flex: 0 0 auto;
    width: 320px;
    background: var(--yali-card);
    border-radius: var(--yali-radius-lg);
    overflow: hidden;
    box-shadow: var(--yali-shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--yali-shadow-md);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    background: var(--yali-bg-alt);
    border-radius: var(--yali-radius-lg);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--yali-primary);
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
}

/* Lightbox Navigation Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--yali-primary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-item {
        width: 280px;
    }
    
    .screenshot-item img {
        height: 175px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-img {
        max-width: 95%;
    }
    
    .lightbox-arrow {
        font-size: 36px;
        width: 45px;
        height: 45px;
        padding: 0.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}
