/**
 * Video Series Styles
 * Professional design for video learning series
 */

/* Video Series Container */
.video-series-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.video-series-container h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px;
    font-weight: 600;
}

/* Student Mode - Video Player */
.video-series-player-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-video-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.main-video-wrapper video {
    width: 100%;
    max-height: 500px;
    display: block;
}

/* Playlist Items */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.playlist-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.playlist-item.active {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Teacher/Admin Mode - Grid View */
.video-series-playlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.series-video-item {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.series-video-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Progress Bar */
.series-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.series-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

/* Buttons */
.video-series-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.video-series-btn:hover {
    background: #005a8c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.video-series-btn.success {
    background: #28a745;
}

.video-series-btn.success:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-series-playlist {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .video-series-player-container {
        padding: 15px;
    }
    
    .main-video-wrapper video {
        max-height: 300px;
    }
}

/* Editing Tools - Hide in Student Mode */
.student-mode .editing-tools {
    display: none !important;
}

.student-mode .button-holder-div {
    display: none !important;
}

/* Video Series Badge */
.videoseries-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* VideoSeries Node Styles */
.videoseries-holder-div {
    margin: 15px 0;
    border-left: 4px solid #e74c3c;
    background: linear-gradient(to right, #fff5f5, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.1);
}

.videoseries-div {
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.6;
}

.videoseries-notes-div {
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.6;
}
