/**
 * Powy Vimeo Video Block Styles
 *
 * @package Powy
 */

/* Main wrapper */
.powy-vimeo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    margin-bottom: 50px;
}

/* Click layer overlay */
.vimeo-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    cursor: pointer;
}

/* Vimeo iframe */
.vimeo-player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom play icon */
.pow-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 20px;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

/* Hide play icon when video is playing */
.is-playing .pow-play-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Placeholder for editor preview */
.powy-vimeo-preview-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1e1e1e;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.powy-vimeo-placeholder-content {
    text-align: center;
    color: #666;
}

.powy-vimeo-placeholder-content svg {
    opacity: 0.5;
    margin-bottom: 10px;
}

.powy-vimeo-placeholder-content p {
    margin: 0;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .powy-vimeo-wrap {
        margin-bottom: 40px;
    }
    .pow-play-icon {
        padding: 15px;
    }

    .pow-play-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
        .powy-vimeo-wrap {
        margin-bottom: 30px;
    }
    .pow-play-icon {
        padding: 12px;
    }

    .pow-play-icon svg {
        width: 32px;
        height: 32px;
    }
}
