/**
 * Thumbnail Highlight Animation
 * Provides visual feedback when thumbnails are automatically clicked
 */

.thumbnail-highlight {
    animation: thumbnailPulse 1s ease-in-out;
    border: 2px solid #007bff !important;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

@keyframes thumbnailPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Ensure smooth transitions for all thumbnail elements */
.main-thumbnail {
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Active thumbnail styling */
.main-thumbnail.active {
    border: 2px solid #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

/* Variant option styling with MD5 classes */
.variant-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.variant-option:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variant-option.active {
    border: 2px solid #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

/* Debug styling for MD5 classes (remove in production) */
[data-md5] {
    position: relative;
}

[data-md5]::after {
    content: attr(data-md5);
    position: absolute;
    top: -20px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: monospace;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

[data-md5]:hover::after {
    opacity: 1;
}

/* Hide MD5 debug info in production */
.production [data-md5]::after {
    display: none;
}
