/**
 * Secure Video Player Styles
 * 
 * @package MLM
 * @since 1.0.0
 */

/* Secure Video Container */
.mlm-secure-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Video Player */
.mlm-secure-video-player {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
    background: #000;
}

.mlm-secure-video-player::-webkit-media-controls-enclosure {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 8px 8px;
}

.mlm-secure-video-player::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.8);
}

/* Download Button */
.mlm-video-download-wrapper {
    margin-top: 15px;
    text-align: center;
}

.mlm-video-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
}

.mlm-video-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.mlm-video-download-btn:active {
    transform: translateY(0);
}

.mlm-video-download-btn i,
.mlm-video-download-btn .icon {
    font-size: 18px;
}

/* Watermark */
.mlm-video-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Video Field in Admin */
.mlm-video-field-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mlm-video-field-group label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.mlm-video-upload-wrapper {
    margin-top: 10px;
}

.mlm-video-source-selector {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.mlm-video-source-selector label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

.mlm-video-source-selector input[type="radio"] {
    margin-left: 5px;
}

.mlm-video-media-selector,
.mlm-video-url-selector {
    margin-top: 10px;
}

.mlm-video-preview {
    margin-top: 10px;
}

.mlm-video-info {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mlm-video-name {
    font-weight: 500;
    color: #333;
}

.mlm-video-downloadable {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.mlm-video-downloadable label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.mlm-video-downloadable input[type="checkbox"] {
    margin-left: 8px;
}

.mlm-video-downloadable .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Loading State */
.mlm-secure-video-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.mlm-secure-video-placeholder .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mlm-secure-video-container {
        margin: 15px 0;
        border-radius: 4px;
    }
    
    .mlm-video-download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .mlm-video-watermark {
        font-size: 10px;
        bottom: 5px;
        right: 5px;
    }
}

