/**
 * Strimly Video Embedder Frontend Styles
 * 
 * @package Strimly_Video_Embedder
 */

/* Video Container */
.strimly-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
}

/* Video Player Customization */
.strimly-video-player {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* Quality Selector Customization */
.vjs-quality-selector .vjs-menu-button {
    margin: 0;
    padding: 0;
    height: 100%;
    width: auto;
}

.vjs-quality-selector .vjs-icon-placeholder {
    font-family: 'VideoJS';
    font-weight: normal;
    font-style: normal;
}

.vjs-quality-selector .vjs-icon-placeholder::before {
    content: '\f110';
}

/* Loading State */
.vjs-loading .vjs-loading-spinner {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .strimly-video-container {
        margin: 10px 0;
    }
    
    .strimly-video-player {
        aspect-ratio: 16/9;
    }
}

/* Error State */
.vjs-error .vjs-error-display {
    display: block;
}

/* Custom Controls */
.vjs-control-bar {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.vjs-big-play-button {
    background-color: rgba(0, 123, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 40px;
    margin-left: -40px;
    margin-top: -40px;
}

.vjs-big-play-button:hover {
    background-color: rgba(0, 123, 255, 1);
    border-color: rgba(0, 123, 255, 1);
}

/* Progress Bar */
.vjs-play-progress {
    background-color: #0073aa;
}

.vjs-load-progress {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Time Display */
.vjs-time-control {
    font-size: 12px;
}

/* Volume Control */
.vjs-volume-control {
    min-width: 80px;
}

/* Fullscreen Button */
.vjs-fullscreen-control {
    margin-right: 0;
}

/* Playback Rate Control */
.vjs-playback-rate .vjs-playback-rate-value {
    font-size: 12px;
    line-height: 1.5;
}

/* Quality Selector Dropdown */
.vjs-quality-selector .vjs-menu {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
}

.vjs-quality-selector .vjs-menu-item {
    color: white;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vjs-quality-selector .vjs-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.vjs-quality-selector .vjs-menu-item.vjs-selected {
    background-color: #0073aa;
}

/* Accessibility */
.vjs-control-bar .vjs-control:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .vjs-big-play-button {
        background-color: #000;
        border-color: #fff;
    }
    
    .vjs-play-progress {
        background-color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .vjs-loading-spinner {
        animation: none;
    }
    
    .vjs-big-play-button {
        transition: none;
    }
} 