/* Screenshot Modal CSS - screenshot-modal.css */

.screenshot-container {
    margin: 20px 0;
    text-align: center;
}

.screenshot-preview {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.screenshot-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Modal styles */
.screenshot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.screenshot-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.screenshot-modal img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screenshot-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.screenshot-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ADDED: Focus styles for accessibility */
.screenshot-modal-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    background: rgba(0, 0, 0, 0.8);
}

/* ADDED: Keyboard support */
.screenshot-preview:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ADDED: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .screenshot-preview {
        transition: none;
    }
    
    .screenshot-preview:hover,
    .screenshot-preview:focus {
        transform: none;
    }
    
    .screenshot-modal {
        animation: none;
    }
    
    .screenshot-modal-close {
        transition: none;
    }
}

@media (max-width: 768px) {
    .screenshot-preview {
        width: 100%;
        max-width: 300px;
    }
    
    .screenshot-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .screenshot-modal-close {
        top: -35px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}