/**
 * Video Image Play Styles
 * Image with play button for video functionality
 */

.video-image-play {
    position: relative;
    display: inline-block;
    width: 100%;
}

.video-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.video-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(40, 170, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: rgba(40, 170, 80, 1);
    transform: translate(-50%, -50%) scale(1.1);
    color: white;
    text-decoration: none;
}

.video-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media screen and (max-width: 640px) {
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* Loading state */
.video-image-play.loading {
    opacity: 0.6;
    pointer-events: none;
}

.video-image-play.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}