/**
 * Estilos BEM para HunterPrice Thrive API
 * Metodología BEM: Block__Element--Modifier
 * Diseño moderno y atractivo
 */

/* Reset y estilos base */
.bodhi-diagnostics * {
    box-sizing: border-box;
}

/* Block: bodhi-diagnostics */
.bodhi-diagnostics {
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
}

/* Element: container */
.bodhi-diagnostics__container {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.bodhi-diagnostics__container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Element: user-section */
.bodhi-diagnostics__user-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Element: message */
.bodhi-diagnostics__message {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bodhi-diagnostics__message::before {
    content: "👋";
    font-size: 24px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Modifier: logged-in */
.bodhi-diagnostics__message--logged-in {
    color: #2d3748;
    font-weight: 600;
}

/* Modifier: logged-out */
.bodhi-diagnostics__message--logged-out {
    color: #d97706;
    font-style: italic;
}

.bodhi-diagnostics__message--logged-out::before {
    content: "🔒";
    animation: none;
}

/* Element: user-id */
.bodhi-diagnostics__user-id {
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 4px 12px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-family: "SF Mono", "Monaco", "Courier New", Courier, monospace;
    font-size: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

/* ========================================
   SECCIÓN: CURSOS INSCRITOS DEL USUARIO
   ======================================== */

/* Element: enrolled */
.bodhi-diagnostics__enrolled {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Element: enrolled-header */
.bodhi-diagnostics__enrolled-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

/* Element: enrolled-title */
.bodhi-diagnostics__enrolled-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bodhi-diagnostics__enrolled-title::before {
    content: "🎓";
    font-size: 28px;
}

/* Element: enrolled-count */
.bodhi-diagnostics__enrolled-count {
    font-weight: 800;
    color: #f5576c;
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 18px;
    font-family: "SF Mono", "Monaco", "Courier New", Courier, monospace;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    min-width: 40px;
    text-align: center;
}

/* Element: enrolled-list */
.bodhi-diagnostics__enrolled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}

/* Element: enrolled-item */
.bodhi-diagnostics__enrolled-item {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.bodhi-diagnostics__enrolled-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.bodhi-diagnostics__enrolled-item:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px) scale(1.01);
}

/* Element: enrolled-thumbnail */
.bodhi-diagnostics__enrolled-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.bodhi-diagnostics__enrolled-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bodhi-diagnostics__enrolled-item:hover .bodhi-diagnostics__enrolled-thumbnail img {
    transform: scale(1.1);
}

/* Element: enrolled-content */
.bodhi-diagnostics__enrolled-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bodhi-diagnostics__enrolled-item:hover::before {
    width: 8px;
}

/* Element: enrolled-info */
.bodhi-diagnostics__enrolled-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

/* Element: enrolled-number */
.bodhi-diagnostics__enrolled-number {
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: "SF Mono", "Monaco", "Courier New", Courier, monospace;
    font-size: 16px;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Element: enrolled-name */
.bodhi-diagnostics__enrolled-name {
    flex: 1;
    font-size: 17px;
    color: #1a202c;
    font-weight: 600;
    line-height: 1.4;
}

/* Element: enrolled-status */
.bodhi-diagnostics__enrolled-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Modifier: not-started */
.bodhi-diagnostics__enrolled-status--not-started {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    color: #2d3748;
}

/* Modifier: in-progress */
.bodhi-diagnostics__enrolled-status--in-progress {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #fff;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3); }
    50% { box-shadow: 0 4px 15px rgba(66, 153, 225, 0.6); }
}

/* Modifier: completed */
.bodhi-diagnostics__enrolled-status--completed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
}

.bodhi-diagnostics__enrolled-status--completed::after {
    content: " ✓";
    font-size: 13px;
}

/* Modifier: unlocked */
.bodhi-diagnostics__enrolled-status--unlocked {
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    color: #744210;
}

/* Modifier: no-access */
.bodhi-diagnostics__enrolled-status--no-access {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: #fff;
}

/* Element: enrolled-progress */
.bodhi-diagnostics__enrolled-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Element: enrolled-progress-bar */
.bodhi-diagnostics__enrolled-progress-bar {
    flex: 1;
    height: 24px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Element: enrolled-progress-fill */
.bodhi-diagnostics__enrolled-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.bodhi-diagnostics__enrolled-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Element: enrolled-progress-text */
.bodhi-diagnostics__enrolled-progress-text {
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    min-width: 50px;
    text-align: right;
    font-family: "SF Mono", "Monaco", "Courier New", Courier, monospace;
}

/* Element: enrolled-meta */
.bodhi-diagnostics__enrolled-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #718096;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    gap: 15px;
}

/* Element: enrolled-date */
.bodhi-diagnostics__enrolled-date {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bodhi-diagnostics__enrolled-date::before {
    content: "📅";
    font-size: 14px;
}

/* Element: enrolled-activity */
.bodhi-diagnostics__enrolled-activity {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bodhi-diagnostics__enrolled-activity::before {
    content: "⚡";
    font-size: 14px;
}

/* ========================================
   SECCIÓN: TODOS LOS CURSOS
   ======================================== */

/* Element: courses */
.bodhi-diagnostics__courses {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Element: courses-header */
.bodhi-diagnostics__courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

/* Element: courses-title */
.bodhi-diagnostics__courses-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bodhi-diagnostics__courses-title::before {
    content: "📚";
    font-size: 28px;
}

/* Element: courses-count */
.bodhi-diagnostics__courses-count {
    font-weight: 800;
    color: #4facfe;
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 18px;
    font-family: "SF Mono", "Monaco", "Courier New", Courier, monospace;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    min-width: 40px;
    text-align: center;
}

/* Element: courses-list */
.bodhi-diagnostics__courses-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .bodhi-diagnostics__courses-list {
        grid-template-columns: 1fr;
    }
}

/* Element: course-item */
.bodhi-diagnostics__course-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bodhi-diagnostics__course-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    transition: width 0.3s ease;
}

/* Element: course-thumbnail */
.bodhi-diagnostics__course-thumbnail {
    width: 100px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background: linear-gradient(135deg, #4fd1c5 0%, #3182ce 50%, #667eea 100%);
}

.bodhi-diagnostics__course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bodhi-diagnostics__course-item:hover .bodhi-diagnostics__course-thumbnail img {
    transform: scale(1.1);
}

/* Element: course-content */
.bodhi-diagnostics__course-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.bodhi-diagnostics__course-item--published::before {
    background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
}

.bodhi-diagnostics__course-item--draft::before {
    background: linear-gradient(180deg, #a0aec0 0%, #718096 100%);
}

.bodhi-diagnostics__course-item--private::before {
    background: linear-gradient(180deg, #ecc94b 0%, #d69e2e 100%);
}

.bodhi-diagnostics__course-item--hidden::before {
    background: linear-gradient(180deg, #cbd5e0 0%, #a0aec0 100%);
}

.bodhi-diagnostics__course-item--future::before {
    background: linear-gradient(180deg, #4299e1 0%, #3182ce 100%);
}

.bodhi-diagnostics__course-item--archived::before {
    background: linear-gradient(180deg, #fc8181 0%, #f56565 100%);
}

.bodhi-diagnostics__course-item:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bodhi-diagnostics__course-item:hover::before {
    width: 6px;
}

/* Element: course-number */
.bodhi-diagnostics__course-number {
    font-weight: 700;
    color: #718096;
    margin-right: 12px;
    min-width: 35px;
    font-family: "SF Mono", "Monaco", "Courier New", Courier, monospace;
    font-size: 14px;
}

/* Element: course-name */
.bodhi-diagnostics__course-name {
    flex: 1;
    font-size: 15px;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.4;
}

/* Element: course-status */
.bodhi-diagnostics__course-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Modifier: published */
.bodhi-diagnostics__course-status--published {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
}

.bodhi-diagnostics__course-status--published::before {
    content: "✓ ";
}

/* Modifier: draft */
.bodhi-diagnostics__course-status--draft {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    color: #2d3748;
}

/* Modifier: private */
.bodhi-diagnostics__course-status--private {
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    color: #744210;
}

.bodhi-diagnostics__course-status--private::before {
    content: "🔒 ";
}

/* Modifier: hidden */
.bodhi-diagnostics__course-status--hidden {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
}

/* Modifier: future */
.bodhi-diagnostics__course-status--future {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #fff;
}

.bodhi-diagnostics__course-status--future::before {
    content: "⏰ ";
}

/* Modifier: archived */
.bodhi-diagnostics__course-status--archived {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: #fff;
}

.bodhi-diagnostics__course-status--archived::before {
    content: "📦 ";
}

/* Modifier: unknown */
.bodhi-diagnostics__course-status--unknown {
    background: linear-gradient(135deg, #f0f0f1 0%, #e0e0e0 100%);
    color: #3c434a;
}

/* Element: courses-empty */
.bodhi-diagnostics__courses-empty {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.bodhi-diagnostics__courses-empty::before {
    content: "🔍";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .bodhi-diagnostics__container {
        padding: 20px;
    }
    
    .bodhi-diagnostics__enrolled,
    .bodhi-diagnostics__courses {
        padding: 15px;
    }
    
    .bodhi-diagnostics__enrolled-header,
    .bodhi-diagnostics__courses-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .bodhi-diagnostics__enrolled-title,
    .bodhi-diagnostics__courses-title {
        font-size: 18px;
    }
    
    .bodhi-diagnostics__enrolled-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* Thumbnails en móvil */
    .bodhi-diagnostics__enrolled-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bodhi-diagnostics__enrolled-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .bodhi-diagnostics__course-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bodhi-diagnostics__course-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .bodhi-diagnostics__course-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bodhi-diagnostics__enrolled-item,
.bodhi-diagnostics__course-item {
    animation: fadeIn 0.5s ease-out forwards;
}

.bodhi-diagnostics__enrolled-item:nth-child(1),
.bodhi-diagnostics__course-item:nth-child(1) { animation-delay: 0.05s; }
.bodhi-diagnostics__enrolled-item:nth-child(2),
.bodhi-diagnostics__course-item:nth-child(2) { animation-delay: 0.1s; }
.bodhi-diagnostics__enrolled-item:nth-child(3),
.bodhi-diagnostics__course-item:nth-child(3) { animation-delay: 0.15s; }
.bodhi-diagnostics__enrolled-item:nth-child(4),
.bodhi-diagnostics__course-item:nth-child(4) { animation-delay: 0.2s; }
.bodhi-diagnostics__enrolled-item:nth-child(5),
.bodhi-diagnostics__course-item:nth-child(5) { animation-delay: 0.25s; }

/* ========================================
   DETALLE DE CURSO
   ======================================== */

/* Element: course-detail-header */
.bodhi-diagnostics__course-detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Element: course-detail-cover */
.bodhi-diagnostics__course-detail-cover {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.bodhi-diagnostics__course-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Element: course-detail-info */
.bodhi-diagnostics__course-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Element: course-detail-title */
.bodhi-diagnostics__course-detail-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Element: course-detail-meta */
.bodhi-diagnostics__course-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bodhi-diagnostics__course-detail-meta-item {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Element: course-detail-progress-section */
.bodhi-diagnostics__course-detail-progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bodhi-diagnostics__course-detail-progress-bar {
    flex: 1;
    height: 20px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bodhi-diagnostics__course-detail-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.bodhi-diagnostics__course-detail-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2.5s infinite;
}

.bodhi-diagnostics__course-detail-progress-text {
    font-weight: 700;
    font-size: 16px;
    color: #667eea;
    min-width: 50px;
    text-align: right;
}

/* Element: course-detail-content */
.bodhi-diagnostics__course-detail-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.bodhi-diagnostics__course-detail-content-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

/* Element: course-detail-list */
.bodhi-diagnostics__course-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bodhi-diagnostics__course-detail-sublist {
    list-style: none;
    padding-left: 30px;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Element: course-detail-item */
.bodhi-diagnostics__course-detail-item {
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bodhi-diagnostics__course-detail-item:hover {
    background: #fff;
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.bodhi-diagnostics__course-detail-item--level-0 {
    font-weight: 600;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #cbd5e0;
}

.bodhi-diagnostics__course-detail-item--completed {
    border-left: 4px solid #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.bodhi-diagnostics__course-detail-item--started {
    border-left: 4px solid #4299e1;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

/* Element: course-detail-item-content */
.bodhi-diagnostics__course-detail-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bodhi-diagnostics__course-detail-item-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bodhi-diagnostics__course-detail-item-title {
    flex: 1;
    font-size: 15px;
    color: #2d3748;
    min-width: 200px;
}

/* Element: course-detail-item-status */
.bodhi-diagnostics__course-detail-item-status {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bodhi-diagnostics__course-detail-item-status--completed {
    background: #c6f6d5;
    color: #22543d;
}

.bodhi-diagnostics__course-detail-item-status--started {
    background: #bee3f8;
    color: #2c5282;
}

.bodhi-diagnostics__course-detail-item-status--unlocked {
    background: #fed7d7;
    color: #742a2a;
}

/* Element: course-detail-item-dates */
.bodhi-diagnostics__course-detail-item-dates {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    padding-left: 12px;
    font-size: 13px;
    color: #64748b;
}

.bodhi-diagnostics__course-detail-item-date {
    display: inline-block;
}

/* Element: course-detail-empty */
.bodhi-diagnostics__course-detail-empty {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
    font-style: italic;
}

/* Responsive para detalle de curso */
@media (max-width: 768px) {
    .bodhi-diagnostics__course-detail-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bodhi-diagnostics__course-detail-cover {
        width: 100%;
        height: 200px;
    }
    
    .bodhi-diagnostics__course-detail-title {
        font-size: 22px;
    }
    
    .bodhi-diagnostics__course-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .bodhi-diagnostics__course-detail-item-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bodhi-diagnostics__course-detail-sublist {
        padding-left: 15px;
    }
}

/* ============================================
   LESSON DETAIL VIEW STYLES
   ============================================ */

/* Modifier: lesson-view */
.bodhi-diagnostics--lesson-view {
    max-width: 900px;
    margin: 0 auto;
}

/* Element: breadcrumb */
.bodhi-diagnostics__breadcrumb {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.bodhi-diagnostics__back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bodhi-diagnostics__back-button:hover {
    color: #2563eb;
    transform: translateX(-4px);
}

/* Element: lesson-header */
.bodhi-diagnostics__lesson-header {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bodhi-diagnostics__lesson-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.bodhi-diagnostics__lesson-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bodhi-diagnostics__lesson-type {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    color: #3b82f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bodhi-diagnostics__lesson-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bodhi-diagnostics__lesson-status--completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

/* Element: lesson-media */
.bodhi-diagnostics__lesson-media {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #000;
}

.bodhi-diagnostics__lesson-media iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}

.bodhi-diagnostics__lesson-media audio {
    width: 100%;
}

/* Element: lesson-cover */
.bodhi-diagnostics__lesson-cover {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Element: lesson-content */
.bodhi-diagnostics__lesson-content {
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
    font-size: 16px;
    color: #334155;
}

.bodhi-diagnostics__lesson-content h1,
.bodhi-diagnostics__lesson-content h2,
.bodhi-diagnostics__lesson-content h3,
.bodhi-diagnostics__lesson-content h4 {
    color: #1e293b;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.bodhi-diagnostics__lesson-content h1 {
    font-size: 28px;
}

.bodhi-diagnostics__lesson-content h2 {
    font-size: 24px;
}

.bodhi-diagnostics__lesson-content h3 {
    font-size: 20px;
}

.bodhi-diagnostics__lesson-content p {
    margin-bottom: 1.25em;
}

.bodhi-diagnostics__lesson-content ul,
.bodhi-diagnostics__lesson-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.25em;
}

.bodhi-diagnostics__lesson-content li {
    margin-bottom: 0.5em;
}

.bodhi-diagnostics__lesson-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.bodhi-diagnostics__lesson-content a:hover {
    border-bottom-color: #3b82f6;
}

.bodhi-diagnostics__lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.bodhi-diagnostics__lesson-content blockquote {
    padding: 15px 20px;
    margin: 1.5em 0;
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.bodhi-diagnostics__lesson-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.bodhi-diagnostics__lesson-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.bodhi-diagnostics__lesson-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Make links clickable in lesson list */
.bodhi-diagnostics__course-detail-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bodhi-diagnostics__course-detail-item-link:hover {
    transform: translateX(4px);
}

.bodhi-diagnostics__course-detail-item-link:hover .bodhi-diagnostics__course-detail-item-content {
    background: rgba(59, 130, 246, 0.05);
}

/* Responsive para vista de lección */
@media (max-width: 768px) {
    .bodhi-diagnostics__lesson-title {
        font-size: 24px;
    }

    .bodhi-diagnostics__lesson-media iframe {
        height: 250px;
    }

    .bodhi-diagnostics__lesson-cover {
        height: 250px;
    }

    .bodhi-diagnostics__lesson-content {
        padding: 20px;
        font-size: 15px;
    }

    .bodhi-diagnostics__lesson-content h1 {
        font-size: 22px;
    }

    .bodhi-diagnostics__lesson-content h2 {
        font-size: 20px;
    }

    .bodhi-diagnostics__lesson-content h3 {
        font-size: 18px;
    }
}

/* Element: lesson-summary */
.bodhi-diagnostics__lesson-summary {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

/* Element: lesson-video-info */
.bodhi-diagnostics__lesson-video-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.bodhi-diagnostics__lesson-video-info a:hover {
    background: #e2e8f0;
    color: #2563eb;
}
