/* Lesson Content Styles */
.lesson-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 30px;
}

.lesson-content h1 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.lesson-content h2 {
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.lesson-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
}

.code-example {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.code-example code {
    font-family: 'Courier New', Consolas, monospace;
    color: #d94848;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
    white-space: pre-wrap;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.copy-icon {
    font-size: 1rem;
}

.code-explanation {
    font-style: italic;
    color: #718096;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0 8px 8px 0;
}

.code-explanation ul {
    margin: 10px 0;
    padding-left: 20px;
}

.code-explanation li {
    margin-bottom: 8px;
}

/* Lesson Navigation */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    gap: 20px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-button.prev {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-button.next {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.nav-button.home {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.nav-button.disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-arrow {
    font-size: 1.2rem;
}

/* Responsive */
/* Simulator Promo */
.simulator-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.simulator-promo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.simulator-promo p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.simulator-link {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.simulator-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .lesson-content {
        padding: 20px;
    }

    .lesson-content h1 {
        font-size: 1.8rem;
    }

    .lesson-content h2 {
        font-size: 1.4rem;
    }

    .lesson-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }
}