/* Screenshot Container */
.screenshot-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4px;
}

.screenshot-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.tutorial-screenshot {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    max-height: 400px;
    object-fit: cover;
}

.tutorial-screenshot:hover {
    opacity: 0.95;
    filter: brightness(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.screenshot-overlay .step-indicator {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.zoom-hint {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-container:hover .zoom-hint {
    opacity: 1;
    transform: translateX(0);
}

/* Lightbox Improvements */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8) translateY(40px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(8px);
    color: white;
    padding: 30px 24px 24px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .screenshot-container {
        border-radius: 12px;
        padding: 2px;
    }
    
    .screenshot-overlay {
        top: 12px;
        right: 12px;
        gap: 8px;
    }
    
    .screenshot-overlay .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .zoom-hint {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-caption {
        padding: 20px 16px 16px;
        font-size: 16px;
    }
}
