/* Phytest Video Popup Styles - Pixel Perfect */

/*
 * High z-index values to ensure popup appears above:
 * - Divi fixed header (z-index: 100000)
 * - Divi mobile menu (z-index: 999999)
 * - Other fixed elements
 */

/* Video Container */
.phytest-video-container {
    margin: 0 auto;
    padding: 0;
}

/* Video Thumbnail Wrapper */
.phytest-video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phytest-video-thumbnail:hover {
    transform: scale(1.02);
}

/* Thumbnail Image */
.phytest-video-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Play Button Overlay */
.phytest-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 10;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.phytest-video-thumbnail:hover .phytest-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Play Button SVG */
.phytest-play-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Play Circle - Transparent with blur and light white tint */
.play-circle {
    fill: rgba(255, 255, 255, 0.25);
    transition: fill 0.3s ease;
}

.phytest-video-thumbnail:hover .play-circle {
    fill: rgba(255, 255, 255, 0.35);
}

/* Play Triangle - White */
.play-triangle {
    fill: #ffffff;
}

/* Video Popup Modal */
.phytest-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.phytest-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    z-index: 999998 !important;
}

/* Video Wrapper */
.phytest-video-wrapper {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 9999999 !important;
    animation: scaleIn 0.3s ease;
}

/* Close Button */
.phytest-close-button {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.phytest-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* Video Content */
.phytest-video-content {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phytest-video-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .phytest-play-button {
        width: 60px;
        height: 60px;
    }
    
    .phytest-video-wrapper {
        width: 95%;
    }
    
    .phytest-close-button {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 28px;
        line-height: 31px;
    }
    
    .phytest-video-thumbnail {
        border-radius: 12px;
		padding:0 20px;
    }
    
    .phytest-video-thumbnail img {
        border-radius: 8px;
    }
	.phytest-video-thumbnail{
		padding:0 10px;
	}
}

@media (max-width: 480px) {
    .phytest-play-button {
        width: 50px;
        height: 50px;
    }
    
}

