/**
 * Video Cursor Follower Styles
 *
 * @package    Video_Cursor_Follower
 * @subpackage Video_Cursor_Follower/assets/css
 * @since      1.0.0
 * @author     Templines <templines.com>
 */

/* Link Wrapper */
.vcf-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.vcf-link-wrapper:hover {
    opacity: 0.95;
}

/* Container Wrapper */
.vcf-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    transition: height 0.3s ease;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.vcf-wrapper.vcf-has-link {
    cursor: pointer;
}

/* Background Video */
.vcf-background-video {
    position: absolute;
    top: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Hide video on mobile if Play On Mobile is disabled */
@media (max-width: 768px) {
    .vcf-background-video.vcf-video-desktop-only {
        display: none;
    }
}

/* Hide video on hover mode by default */
.vcf-wrapper[data-video-play-on="hover"] .vcf-background-video {
    opacity: 0;
}

/* Show video on hover */
.vcf-wrapper[data-video-play-on="hover"]:hover .vcf-background-video {
    opacity: 1;
}

/* Show fallback by default on hover mode */
.vcf-wrapper[data-video-play-on="hover"] .vcf-background-video-fallback {
    display: block !important;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Hide fallback on hover */
.vcf-wrapper[data-video-play-on="hover"]:hover .vcf-background-video-fallback {
    opacity: 0;
}

.vcf-background-video video {
    position: absolute;
    pointer-events: none;
    /* Default positioning - can be overridden by Elementor controls */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vcf-background-video iframe {
    position: absolute;
    pointer-events: none;
    /* YouTube/Vimeo specific positioning */
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.5);
    object-fit: cover;
}

/* Background Video Fallback for Mobile */
.vcf-background-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    transition: opacity 0.5s ease;
}

/* Always show fallback on mobile */
@media (max-width: 768px) {
    .vcf-background-video {
        display: none !important;
    }
    
    .vcf-background-video-fallback {
        display: block !important;
        opacity: 1 !important;
    }
}

/* Background Overlay */
.vcf-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Overlay visible only on hover for video mode */
.vcf-background-overlay.vcf-overlay-hover {
  display: none;
}

.vcf-wrapper:hover .vcf-background-overlay.vcf-overlay-hover {
    display: block;
}

/* Additional Content Container */
.vcf-additional-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Content visibility on hover */
.vcf-additional-content.vcf-content-hidden-hover {
    opacity: 0;
}

.vcf-wrapper:hover .vcf-additional-content.vcf-content-hidden-hover {
    opacity: 1;
}

/* Additional Content - Heading */
.vcf-content-heading {
    margin: 0;
    padding: 0;
}

/* Additional Content - Description */
.vcf-content-description {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Additional Content - Button */
.vcf-content-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.vcf-content-button:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Cursor Button */
.vcf-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vcf-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Button visibility states */
.vcf-button.vcf-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.vcf-button.vcf-hidden-hover {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vcf-wrapper:hover .vcf-button.vcf-hidden-hover {
    opacity: 1;
    visibility: visible;
}

/* Button Icon */
.vcf-icon {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcf-icon i,
.vcf-icon svg {
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Circular Text Container */
.vcf-circular-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Circular Text Styles */
.vcf-circular-svg {
    width: 90% !important;
    height: 90% !important;
    fill: none;
    stroke: none;
    transform-origin: center center;
    animation: vcf-rotate 10s linear infinite;
}

/* Disable animation class */
.vcf-circular-svg.no-rotation {
    animation: none !important;
}

/* Counter-clockwise rotation */
.vcf-circular-svg.counter-clockwise {
    animation-direction: reverse;
}

/* Speed variation classes */
.vcf-circular-svg.speed-slow {
    animation-duration: 20s;
}

.vcf-circular-svg.speed-medium {
    animation-duration: 10s;
}

.vcf-circular-svg.speed-fast {
    animation-duration: 5s;
}

.vcf-circular-svg text {
    fill: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

.vcf-circular-svg textPath {
    fill: #ffffff;
}

/* Rotation Animation */
@keyframes vcf-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Button Visibility */
.vcf-button.hidden {
    opacity: 0;
}

/* Video Popup Overlay */
.vcf-video-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(17, 17, 23, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vcf-video-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Video Container */
.vcf-video-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.vcf-video-overlay.active .vcf-video-container {
    transform: scale(1);
}

.vcf-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close Button */
.vcf-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vcf-video-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Loading Spinner */
.vcf-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: vcf-spin 1s linear infinite;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .vcf-button {
        width: 80px;
        height: 80px;
    }
    
    .vcf-icon i,
    .vcf-icon svg {
        font-size: 18px;
    }
    
    .vcf-circular-text text {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .vcf-button {
        width: 60px;
        height: 60px;
    }
    
    .vcf-icon i,
    .vcf-icon svg {
        font-size: 14px;
    }
    
    .vcf-circular-text text {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .vcf-circular-svg {
        animation: none !important;
    }
    
    .vcf-button {
        transition: none;
    }
}
