/**
 * Module-specific styles
 * For course modules and sections display
 */

/* Module Sections List */
.module-sections-wrapper {
    margin: 20px 0;
}

.module-sections-list {
    margin: 20px 0;
    padding-left: 20px;
}

.module-section-item {
    margin-bottom: 15px;
}

.module-section-type {
    color: #666;
    font-style: italic;
}

.module-section-quiz-indicator {
    color: #4caf50;
}

.module-section-content {
    margin-top: 10px;
    padding-left: 20px;
}

/* Module Navigation */
.module-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.module-navigation-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.module-navigation-link:hover {
    background: #e8e8e8;
    color: #000;
}

/* Module Sidebar Widgets */
.module-sidebar-widget {
    margin-top: 30px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
}

.module-sidebar-widget h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Module Lessons List */
.module-lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-lessons-list li {
    margin-bottom: 10px;
}

.module-lesson-current {
    background: #fff;
    margin-left: -10px;
    margin-right: -10px;
    padding: 5px 10px;
    border-radius: 3px;
}

.module-lesson-current strong {
    color: #333;
}

.module-lessons-list a {
    color: #0073aa;
    text-decoration: none;
}

.module-lessons-list a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Module Content Types */
.module-content-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-style: italic;
}

.module-content-indicator .material-icons {
    font-size: 20px;
    vertical-align: middle;
}

a.module-content-indicator {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

a.module-content-indicator:hover {
    color: #0073aa;
}

/* Video Thumbnails */
.module-section-video-preview {
    margin-top: 15px;
}

.video-thumbnail-link {
    display: block;
    text-decoration: none;
}

.video-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail-link:hover .video-thumbnail-wrapper {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.video-thumbnail-link:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-thumbnail-link:hover .play-button {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.play-button .material-icons {
    font-size: 48px;
    color: #0073aa;
}

.video-indicator-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.video-indicator-text .material-icons {
    font-size: 18px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-thumbnail-wrapper {
        max-width: 100%;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button .material-icons {
        font-size: 36px;
    }
}

/* Video Fallback Styles */
.module-video-fallback {
    margin: 20px 0;
}

.video-fallback-link {
    text-decoration: none;
    display: block;
}

.video-fallback-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e1e4e8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.video-fallback-link:hover .video-fallback-wrapper {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.video-fallback-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #0073aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-fallback-link:hover .video-fallback-icon {
    background: #005177;
    transform: scale(1.05);
}

.video-fallback-icon .material-icons {
    font-size: 48px;
    color: white;
}

.video-fallback-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.video-cta {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.video-fallback-link:hover .video-cta {
    color: #0073aa;
}

/* Compact version for multiple sections */
.module-video-fallback.compact {
    margin: 10px 0 10px 20px;
}

.module-video-fallback.compact .video-fallback-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.module-video-fallback.compact .video-fallback-link:hover {
    background: #e0e0e0;
    transform: translateX(2px);
}

.video-fallback-icon-inline {
    display: inline-flex;
    align-items: center;
}

.video-fallback-icon-inline .material-icons {
    font-size: 24px;
    color: #0073aa;
}

.video-fallback-text-inline {
    color: #333;
    font-weight: 500;
}

/* Mobile responsive for fallback */
@media (max-width: 768px) {
    .video-fallback-wrapper {
        padding: 20px;
        gap: 15px;
    }
    
    .video-fallback-icon {
        width: 60px;
        height: 60px;
    }
    
    .video-fallback-icon .material-icons {
        font-size: 36px;
    }
    
    .video-title {
        font-size: 16px;
    }
}