/* ==========================================================================
   TOONZ VIMEO POPUP WIDGETS STYLES & MODAL OVERLAY
   ========================================================================== */

/* Trigger elements base */
.toonz-vimeo-trigger {
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   1. IMAGE POPUP WIDGET STYLES
   -------------------------------------------------------------------------- */
.toonz-vimeo-image-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
}

.toonz-vimeo-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.toonz-vimeo-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0.85;
    transition: all 0.4s ease;
}

.toonz-vimeo-image-wrap:hover .toonz-vimeo-image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.toonz-vimeo-image-wrap:hover img {
    transform: scale(1.06);
}

/* Play Icon Overlay Button */
.toonz-vimeo-play-btn {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ff5722;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
    z-index: 2;
}

.toonz-vimeo-play-btn i,
.toonz-vimeo-play-btn svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 3px; /* Align play triangle */
}

.toonz-vimeo-image-wrap:hover .toonz-vimeo-play-btn {
    transform: scale(1.15);
    background-color: #ffffff;
    color: #ff5722;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.5);
}

/* Play Button Pulse Animation Option */
.toonz-vimeo-play-btn.has-pulse::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 87, 34, 0.7);
    animation: toonzVimeoPulse 2s infinite;
}

@keyframes toonzVimeoPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   2. BUTTON POPUP WIDGET STYLES
   -------------------------------------------------------------------------- */
.toonz-vimeo-button-wrap {
    display: inline-block;
}

.toonz-vimeo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: none !important;
    border: 2px solid none !important;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: none !important;
}



.toonz-vimeo-btn .toonz-vimeo-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.toonz-vimeo-btn:hover .toonz-vimeo-btn-icon {
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   3. HEADING POPUP WIDGET STYLES
   -------------------------------------------------------------------------- */
.toonz-vimeo-heading-wrap {
    display: inline-block;
    position: relative;
}

.toonz-vimeo-heading {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.toonz-vimeo-heading-wrap:hover .toonz-vimeo-heading {
    color: #ff5722;
}

.toonz-vimeo-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 87, 34, 0.15);
    color: #ff5722;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toonz-vimeo-heading-wrap:hover .toonz-vimeo-heading-icon {
    background-color: #ff5722;
    color: #ffffff;
    transform: scale(1.1);
}

.toonz-vimeo-heading-sub {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    transition: color 0.3s ease;
}

.toonz-vimeo-heading-wrap:hover .toonz-vimeo-heading-sub {
    color: rgba(255, 255, 255, 0.95);
}

/* --------------------------------------------------------------------------
   MODAL POPUP OVERLAY & CONTAINER
   -------------------------------------------------------------------------- */
.toonz-vimeo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s ease;
    padding: 20px;
    box-sizing: border-box;
}

.toonz-vimeo-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.toonz-vimeo-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: visible;
}

.toonz-vimeo-modal-overlay.is-active .toonz-vimeo-modal-dialog {
    transform: scale(1);
}

.toonz-vimeo-modal-iframe-wrap {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.toonz-vimeo-modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Close Button */
.toonz-vimeo-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.toonz-vimeo-modal-close:hover {
    background-color: #ff5722;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

/* Aspect Ratio Variations */
.toonz-vimeo-modal-dialog.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.toonz-vimeo-modal-dialog.ratio-21-9 {
    aspect-ratio: 21 / 9;
}

.toonz-vimeo-modal-dialog.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .toonz-vimeo-modal-close {
        top: -40px;
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .toonz-vimeo-heading {
        font-size: 24px;
    }

    .toonz-vimeo-play-btn {
        width: 54px;
        height: 54px;
    }

    .toonz-vimeo-play-btn i,
    .toonz-vimeo-play-btn svg {
        font-size: 18px;
    }
}
