/* Movement Medicine Course - Lesson Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f8f9fa;
    min-height: 100vh;
}

.lesson-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    margin-top: 20px;
    margin-bottom: 20px;
    border: 3px solid #5FACCF;
}

/* Header Styles */
.lesson-header {
    background: #5FACCF !important;
    color: white !important;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.lesson-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
    pointer-events: none;
}

.lesson-header * {
    position: relative;
    z-index: 2;
    color: white !important;
}

.lesson-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.4);
}

.progress {
    height: 100%;
    background: white;
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Main Content */
.lesson-content {
    padding: 2rem 2rem;
}

/* Lesson Introduction Styles */
.lesson-introduction {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lesson-introduction h2 {
    color: #1e293b;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.introduction-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.introduction-content p {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1.05rem;
}

.introduction-content p strong {
    color: #1e293b;
    font-weight: 600;
}

.lesson-objectives {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.lesson-objectives h3 {
    color: #0c4a6e;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.lesson-objectives ul {
    margin: 0;
    padding-left: 1.5rem;
}

.lesson-objectives li {
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.research-foundation {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0 0 0;
}

.research-foundation h3 {
    color: #15803d;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-foundation p {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.interactive-section {
    background: #F2EFF3 !important;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #D8C7CC;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.interactive-section h2 {
    color: #847D83 !important;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.interactive-section h2::before {
    content: "🎯";
    font-size: 1.5rem;
}

/* Learning Points */
.learning-points {
    margin: 2rem 0;
}

.learning-points h2 {
    text-align: center;
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.insight-card {
    background: #F2EFF3;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #D8C7CC;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.insight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.insight-card h3 {
    color: #847D83;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.insight-card p {
    color: #847D83;
    line-height: 1.6;
}

/* Practice Section */
.practice-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.practice-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Footer Styles */
.lesson-footer {
    background: #F2EFF3;
    padding: 2rem;
    border-top: 1px solid #D8C7CC;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn.primary {
    background: #5FACCF;
    color: white;
}

.nav-btn.primary:hover {
    background: #4A9BB9;
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: #D8C7CC;
    color: #847D83;
}

.nav-btn.secondary:hover {
    background: #C2B1B8;
}

.lesson-progress {
    text-align: center;
    color: #847D83;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-container {
        margin: 10px;
        border-radius: 16px;
        min-height: calc(100vh - 20px);
    }

    .lesson-header {
        padding: 1.5rem 1rem;
    }

    .lesson-header h1 {
        font-size: 1.75rem;
    }

    .lesson-content {
        padding: 2rem 1rem;
    }

    .interactive-section {
        padding: 1.5rem 1rem;
    }

    .insight-cards {
        grid-template-columns: 1fr;
    }

    .lesson-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

/* Accessibility */
.nav-btn:focus,
.exercise-btn:focus {
    outline: 2px solid #5FACCF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lesson-container {
        border: 2px solid #000;
    }

    .interactive-section {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .insight-card {
        transition: none;
    }

    .insight-card:hover {
        transform: none;
    }

    .progress {
        transition: none;
    }
}