/**
 * Styles CSS pour l'affichage amélioré des résultats
 * VERSION PHASE 8 - Amélioration UX Utilisateur
 */

/* Animations globales pour les résultats */
.result-image, .result-audio, .result-url, .result-pdf, .result-html, .result-json, .result-text, .result-fallback {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effets hover pour les images */
.result-image .image-container:hover img { 
    transform: scale(1.02); 
    box-shadow: 0 12px 35px rgba(0,0,0,0.2); 
}

.result-image .image-container:hover .image-overlay { 
    opacity: 1; 
}

/* Effets hover pour les boutons */
.result-image .button:hover,
.result-audio .button:hover,
.result-url .button:hover,
.result-pdf .button:hover { 
    transform: translateY(-2px); 
    opacity: 0.9; 
}

/* Responsive pour les résultats */
@media (max-width: 768px) {
    .result-image .image-actions,
    .result-audio .audio-actions,
    .result-url .url-actions,
    .result-pdf .pdf-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-image .image-actions .button,
    .result-audio .audio-actions .button,
    .result-url .url-actions .button,
    .result-pdf .pdf-actions .button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .result-pdf iframe {
        height: 300px !important;
    }
    
    .result-json pre {
        font-size: 11px !important;
        padding: 15px !important;
    }
}

/* Styles pour les notifications de copie */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Styles pour le modal d'image */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

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