/* LinkedKeeper Course Curriculum - Isolated Styles */
/* This file contains styles specifically for course curriculum components */
/* Isolated from main course-detail.css to prevent conflicts with other components */

/* Course Curriculum Container - Isolated Styles */
.curriculum-container-isolated {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    border: 1px solid #e5e5e5 !important;
    margin-bottom: 2rem !important;
}

.curriculum-module-isolated {
    border-bottom: 1px solid #e5e7eb !important;
}

.curriculum-module-isolated:last-child {
    border-bottom: none !important;
}

/* Module Section Headers - Clean Card Style - Isolated */
.module-section-header-isolated {
    background: #f8f9fa !important;
    padding: 1rem 2rem !important;
    color: #1a1a1a !important;
    position: relative !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

/* Module Header Content Container - Isolated */
.module-header-content {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Module Number (Roman Numeral) - Isolated */
.module-number-isolated {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
}

.module-section-header-isolated:hover .module-number-isolated {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.module-section-header-isolated.live-session {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #1e40af !important;
}

.module-section-header-isolated h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    flex: 1 !important;
}

/* Course Items Container - Isolated */
.course-items-isolated {
    background: white !important;
}

/* Individual Course Items - Isolated */
.course-item-isolated {
    display: flex !important;
    align-items: center !important;
    padding: 0.875rem 2rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.course-item-isolated:last-child {
    border-bottom: none !important;
}

.course-item-isolated:hover {
    background: #f8f9fa !important;
    padding-left: 2.25rem !important;
}

.course-number-isolated {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: #f0f9ff !important;
    color: #3b82f6 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-right: 1.25rem !important;
    flex-shrink: 0 !important;
    border: 1px solid #bae6fd !important;
    transition: all 0.3s ease !important;
}

.course-item-isolated:hover .course-number-isolated {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
    transform: scale(1.05) !important;
}

.course-title-isolated {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
    flex: 1 !important;
    transition: color 0.3s ease !important;
}

.course-item-isolated:hover .course-title-isolated {
    color: #3b82f6 !important;
}

/* Live Session Items - Isolated */
.content-section .course-item-isolated.live-item {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.02) 0%, transparent 100%) !important;
}

.content-section .course-item-isolated.live-item .course-number-isolated {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.content-section .course-item-isolated.live-item:hover .course-number-isolated {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.content-section .course-item-isolated.live-item:hover .course-title-isolated {
    color: #1d4ed8 !important;
}

/* Live Session Indicator - Isolated */
.content-section .course-item-isolated.live-item::before {
    content: '●' !important;
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #3b82f6 !important;
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
}

.content-section .course-item-isolated.live-item:hover::before {
    opacity: 1 !important;
    color: #1d4ed8 !important;
}

/* Responsive Design for Curriculum - Isolated */
@media (max-width: 768px) {
    .content-section .module-section-header-isolated {
        padding: 0.875rem 1.5rem !important;
    }
    
    .content-section .module-header-content {
        gap: 0.75rem !important;
    }
    
    .content-section .module-number-isolated {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }
    
    .content-section .module-section-header-isolated h3 {
        font-size: 1rem !important;
    }
    
    .content-section .course-item-isolated {
        padding: 0.75rem 1.5rem !important;
    }
    
    .content-section .course-item-isolated:hover {
        padding-left: 2rem !important;
    }
    
    .content-section .course-number-isolated {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        margin-right: 1rem !important;
    }
    
    .content-section .course-title-isolated {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .content-section .module-section-header-isolated {
        padding: 0.75rem 1.25rem !important;
    }
    
    .content-section .module-header-content {
        gap: 0.5rem !important;
    }
    
    .content-section .module-number-isolated {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    .content-section .module-section-header-isolated h3 {
        font-size: 0.95rem !important;
    }
    
    .content-section .course-item-isolated {
        padding: 0.625rem 1.25rem !important;
    }
    
    .content-section .course-item-isolated:hover {
        padding-left: 1.75rem !important;
    }
    
    .content-section .course-number-isolated {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
        margin-right: 0.875rem !important;
    }
    
    .content-section .course-title-isolated {
        font-size: 0.8rem !important;
    }
}

/* Animation Keyframes for Curriculum - Isolated */
@keyframes curriculumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to curriculum components */
.content-section .curriculum-container-isolated {
    animation: curriculumFadeInUp 0.6s ease-out !important;
}

.content-section .curriculum-module-isolated {
    animation: curriculumFadeInUp 0.6s ease-out !important;
}

.content-section .curriculum-module-isolated:nth-child(1) { animation-delay: 0.1s !important; }
.content-section .curriculum-module-isolated:nth-child(2) { animation-delay: 0.2s !important; }
.content-section .curriculum-module-isolated:nth-child(3) { animation-delay: 0.3s !important; }
.content-section .curriculum-module-isolated:nth-child(4) { animation-delay: 0.4s !important; }

/* Focus states for accessibility - Isolated */
.content-section .course-item-isolated:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* Print styles for curriculum - Isolated */
@media print {
    .curriculum-container-isolated {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .module-section-header-isolated {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .course-item-isolated:hover {
        background: transparent !important;
        padding-left: 1rem !important;
    }
}