/* Academia Lesson Page Styles */

.lesson-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.lesson-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.lesson-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.lesson-breadcrumb a:hover {
    text-decoration: underline;
}

.lesson-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 800;
}

.lesson-description {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.lesson-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-content {
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.05rem;
}

.text-content h1,
.text-content h2,
.text-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a202c;
}

.text-content p {
    margin-bottom: 1em;
}

.text-content ul,
.text-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.text-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #e53e3e;
}

.file-download {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e0;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.file-size {
    color: #718096;
    font-size: 0.9rem;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    opacity: 0.9;
}

.url-link {
    display: block;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

.url-link a {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.url-link a:hover {
    text-decoration: underline;
}

.lesson-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.btn-complete {
    background: #667eea;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-complete:hover {
    transform: scale(1.05);
    background: #5a67d8;
}

.btn-complete.completed {
    background: #38a169;
}

.btn-complete.completed:hover {
    background: #2f855a;
}

.lesson-navigation {
    display: flex;
    gap: 15px;
}

.btn-nav {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #cbd5e0;
    background: white;
    color: #2d3748;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-nav:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .lesson-title {
        font-size: 1.5rem;
    }

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

    .lesson-navigation {
        width: 100%;
        flex-direction: column;
    }

    .btn-nav {
        justify-content: center;
    }
}