/* Grid de cursos */
.lm-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lm-course-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.lm-course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lm-course-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-course-placeholder {
    font-size: 60px;
    color: #ddd;
}

.lm-course-placeholder .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

.lm-course-content {
    padding: 20px;
}

.lm-course-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.lm-course-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.lm-course-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.lm-course-button-access {
    background: #2271b1;
    color: #fff;
}

.lm-course-button-access:hover {
    background: #135e96;
}

.lm-course-button-buy {
    background: #00a32a;
    color: #fff;
}

.lm-course-button-buy:hover {
    background: #008a20;
}

.lm-course-button-disabled {
    background: #ddd;
    color: #666;
    cursor: not-allowed;
}

/* Visor de curso */
.lm-course-viewer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lm-course-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.lm-course-header h1 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #333;
}

.lm-welcome-message {
    background: #f0f7ff;
    border-left: 4px solid #2271b1;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    line-height: 1.6;
    color: #333;
}

.lm-welcome-message h2,
.lm-welcome-message h3 {
    margin-top: 0;
    color: #2271b1;
}

.lm-course-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lm-progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.lm-progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
}

.lm-progress-text {
    font-weight: 600;
    color: #333;
    min-width: 60px;
}

.lm-course-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .lm-course-content {
        grid-template-columns: 1fr;
    }
}

.lm-course-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: fit-content;
}

.lm-course-sidebar h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.lm-modules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-module-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.lm-module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lm-module-header:hover {
    background: #f0f0f0;
}

.lm-module-number {
    background: #2271b1;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.lm-module-locked .lm-module-number {
    background: #ccc;
}

.lm-module-title {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.lm-module-locked .lm-module-title {
    color: #999;
}

.lm-module-status {
    color: #666;
}

.lm-module-lessons {
    display: none;
    padding: 10px;
    background: #fff;
}

.lm-module-lessons.lm-module-open {
    display: block;
}

.lm-lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lm-lesson-item:hover {
    background: #f5f5f5;
}

.lm-lesson-status {
    color: #666;
}

.lm-lesson-completed .lm-lesson-status {
    color: #00a32a;
}

.lm-lesson-title {
    flex: 1;
    color: #333;
}

.lm-lesson-completed .lm-lesson-title {
    color: #00a32a;
}

.lm-course-main {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.lm-current-module h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
}

.lm-lesson-content {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.lm-lesson-content:last-child {
    border-bottom: none;
}

.lm-lesson-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.lm-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #000;
}

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

.lm-lesson-text {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.lm-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lm-button-primary {
    background: #2271b1;
    color: #fff;
}

.lm-button-primary:hover {
    background: #135e96;
}

.lm-lesson-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #00a32a;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}
