/* ========================================
   VIDEO PLAYER INLINE STYLES
   Used by both course-player and course-preview pages
   Contains video protection and UI element styles
   ======================================== */

/* ========================================
   VIDEO PROTECTION - PREVENT DOWNLOAD & RECORDING
   ======================================== */

/* Disable text/element selection on video area */
.youtube-player-container,
.youtube-video-wrapper,
.youtube-video-container,
#youtubePlayer,
#youtubeIframe,
video {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Prevent dragging */
.youtube-player-container *,
video,
iframe {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto !important;
}

/* Disable pointer events on video to prevent context menu on some browsers */
video::-webkit-media-controls {
    overflow: hidden !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}

/* Ensure video container has relative positioning for overlays */
.youtube-player-container {
    position: relative;
}

/* ========================================
   CONTENT MANIPULATION BUTTON
   Shiny Animated Blue Button
   ======================================== */
.content-manipulator-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #487FFF 0%, #3B6BD8 50%, #2E5BB0 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(72, 127, 255, 0.4);
    animation: pulse-shine 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.content-manipulator-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine-effect 3s ease-in-out infinite;
}

@keyframes pulse-shine {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(72, 127, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(72, 127, 255, 0.8);
        transform: scale(1.05);
    }
}

@keyframes shine-effect {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.content-manipulator-btn:hover {
    background: linear-gradient(135deg, #5A8DFF 0%, #487FFF 50%, #3B6BD8 100%);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 24px rgba(72, 127, 255, 0.6);
}

.content-manipulator-btn:active {
    transform: scale(0.98);
}

.content-manipulator-btn i {
    position: relative;
    z-index: 1;
}
