﻿/* =============================================================================
   SIMPLE VIDEO PLAYER STYLES
   ============================================================================= */

/* Simple Video Backdrop */
.video-element .simple-video-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: backdropFadeIn 0.3s ease-out;
}

/* Simple Video Player */
.video-element .simple-video-player {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Simple Close Guide */
.video-element .simple-close-guide {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    opacity: 0.9;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    animation: fadeInDown 0.5s ease-out;
    text-align: center;
}
.simple-close-btn {
    top: 33px;
    right: 38%;
    background: no-repeat;
    border: none;
    color: white;
    position: absolute;
    font-size: 1.7rem;
}
/* Video Element Base Styles */
.video-element .video-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: backdropFadeIn 0.3s ease-out;
}

/* Video Player Container */


/* Video.js Player - Clean Version */

/* Override only problematic Video.js settings */
.video-element .video-js.vjs-fluid {
    padding-top: 0 !important;
}

/* Big Play Button */
.video-element .video-js .vjs-big-play-button {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 30px;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    transition: all 0.3s ease;
}

    .video-element .video-js .vjs-big-play-button:hover {
        background-color: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
    }

/* Play Overlay Styles */
.video-element .play-overlay {
    pointer-events: auto !important;
    display: flex !important;
}

    .video-element .play-overlay:hover {
        background: rgba(0,0,0,0.9) !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }



/* Close Guide */
.video-element .close-guide {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    opacity: 0.8;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 4px;
    animation: fadeInDown 0.5s ease-out;
}

/* Close Button */
.video-element .close-video-btn:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Mobile Devices - Simple Video */
@media (max-width: 768px) {
    .video-element .simple-video-player {
        max-width: 95vw;
        max-height: 85vh;
    }

    .video-element .simple-close-guide {
        top: 20px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Vertical Videos */
@media (max-aspect-ratio: 1/1) {
    .video-element .video-player-container {
        max-width: 50vh;
        width: auto;
    }

    .video-element .video-js {
        max-width: 50vh;
        width: auto;
        max-height: 80vh; /* Remove calc() */
    }

        .video-element .video-js video {
            max-width: 50vh;
            max-height: 80vh; /* Remove calc() */
        }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .video-element .video-player-container {
        width: 90vw;
        max-width: 90vw;
        max-height: 70vh;
    }

    .video-element .video-js {
        max-width: 90vw;
        max-height: 70vh; /* Remove calc() */
    }

        .video-element .video-js video {
            max-height: 70vh; /* Remove calc() */
        }

    .video-element .close-video-btn {
        top: -40px !important;
        font-size: 24px !important;
    }
}

/* Mobile + Vertical Videos */
@media (max-width: 768px) and (max-aspect-ratio: 1/1) {
    .video-element .video-player-container {
        max-width: 80vw;
        max-height: 60vh;
    }

    .video-element .video-js {
        max-width: 80vw;
        max-height: 60vh; /* Remove calc() */
    }

        .video-element .video-js video {
            max-height: 60vh; /* Remove calc() */
        }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes playerSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* =============================================================================
   LEGACY SUPPORT (For backward compatibility)
   ============================================================================= */

/* Global Video.js Overrides (for non-.video-element contexts) */
.video-js {
    border-radius: 12px;
    font-family: inherit;
}

    .video-js.vjs-responsive {
        padding-top: 0 !important;
    }

[class*="video-player-"][class*="-dimensions"] {
    padding-top: 0 !important;
}

.vjs-fluid:not(.vjs-audio-only-mode) {
    padding-top: 0 !important;
}

/* Global Close Guide (for backward compatibility) */
.site-video-close-guide {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) !important;
    color: white;
    font-size: 14px;
    opacity: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    pointer-events: none;
    animation: fadeInDown 0.5s ease-out forwards;
}

/* Global Video Backdrop (for backward compatibility) */
.video-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: backdropFadeIn 0.3s ease-out;
}
