/* Shared Lesson Page Styles (Light Theme) */

/* Extends mind-care/style.css */

/* Lesson Container */
.lesson-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-sub);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Lesson Header */
.lesson-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--secondary-bg);
    box-shadow: none;
    /* Reset from main header style */
    background: transparent;
}

.lesson-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.lesson-header h1 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
    display: block;
    /* Reset flex */
}

.lesson-subtitle {
    font-size: 1.15rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Table of Contents */
.toc {
    background: var(--secondary-bg);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--radius-md);
}

.toc h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.toc li:last-child {
    border-bottom: none;
}

.toc a {
    color: var(--text-sub);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    font-weight: 500;
}

/* Lesson Content */
.lesson-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.lesson-content h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.lesson-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-top: 35px;
    margin-bottom: 15px;
}

.lesson-content p {
    margin-bottom: 20px;
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.lesson-content li {
    margin-bottom: 10px;
}

.lesson-content strong {
    color: #222;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0.15) 100%);
    box-shadow: inset 0 -0.4em 0 rgba(74, 144, 226, 0.15);
}

/* Highlight Boxes */
.highlight-box {
    background: #e3f2fd;
    /* Light Blue */
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--radius-md);
}

.highlight-box.warning {
    background: #fff3e0;
    /* Light Orange */
    border-left-color: #ff9800;
}

.highlight-box.success {
    background: #e8f5e9;
    /* Light Green */
    border-left-color: #4caf50;
}

.highlight-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: #333;
}

/* Formula Box */
.formula-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 20px;
    margin: 25px 0;
    border-radius: var(--radius-md);
    text-align: center;
    font-family: 'Courier New', monospace;
}

.formula-box .formula {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 10px 0;
}

/* Example Box */
.example-box {
    background: white;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.example-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, #fff9c4, #fff176);
    /* Softer Yellow */
    padding: 30px;
    margin: 50px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #fdd835;
}

.key-takeaways h3 {
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.key-takeaways li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #333;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.key-takeaways li:last-child {
    border-bottom: none;
}

.key-takeaways li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #f57f17;
    font-size: 1.2rem;
}

/* Lesson Navigation */
.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 40px 0;
    gap: 20px;
}

.lesson-nav a {
    flex: 1;
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.lesson-nav a:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lesson-nav .prev {
    justify-content: flex-start;
}

.lesson-nav .next {
    justify-content: flex-end;
    text-align: right;
}

.lesson-nav .nav-label {
    font-size: 0.85rem;
    color: var(--text-sub);
    display: block;
    margin-bottom: 4px;
}

.lesson-nav .nav-title {
    font-weight: 600;
    display: block;
    font-size: 1.05rem;
}

/* Back to Course */
.back-to-course {
    text-align: center;
    margin: 40px 0;
}

.back-to-course a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--text-sub);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
}

.back-to-course a:hover {
    background: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-container {
        padding: 15px;
        margin-top: 10px;
    }

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

    .lesson-content {
        font-size: 1rem;
    }

    .lesson-nav {
        flex-direction: column;
    }
}