/* 🎓 ESTILOS PARA INTEGRACIÓN DE MÓDULOS CON TUTOR BÍBLICO */
/* Mantiene la estética actual mientras añade funcionalidad de módulos */

/* 📚 INFORMACIÓN DE CONTEXTO DEL MÓDULO */
.module-context-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    margin-bottom: 5px;
}

.module-context-info i {
    color: #007bff;
    font-size: 1.1em;
}

.module-progress {
    margin-left: auto;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* 📖 INFORMACIÓN DE CONTEXTO DE LECCIÓN */
.lesson-context-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #495057;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    margin-top: 5px;
}

.lesson-context-info i {
    color: #ffc107;
    font-size: 1em;
}

/* 🧭 ÁREA DE NAVEGACIÓN DE MÓDULOS */
.module-navigation-area {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 0 0 12px 12px;
}

.module-nav-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.module-nav-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.module-nav-btn:active {
    transform: translateY(0);
}

.module-nav-btn i {
    font-size: 0.9em;
}

/* 📖 MENSAJES ESPECÍFICOS DE MÓDULOS */
.module-explanation-message {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.module-explanation-message h4 {
    color: #1976d2;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-explanation-message h4 i {
    color: #2196f3;
}

.module-objectives-list {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.module-objectives-list h5 {
    color: #f57c00;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.module-lessons-list {
    background: #f1f8e9;
    border-left: 4px solid #4caf50;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.module-lessons-list h5 {
    color: #388e3c;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-item {
    padding: 4px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

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

.lesson-item strong {
    color: #2e7d32;
}

/* 🎯 INDICADORES DE PROGRESO */
.progress-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.progress-indicator.beginner {
    background: #e3f2fd;
    color: #1976d2;
}

.progress-indicator.intermediate {
    background: #fff3e0;
    color: #f57c00;
}

.progress-indicator.advanced {
    background: #fce4ec;
    color: #c2185b;
}

/* 🔄 BOTONES DE ACCIÓN RÁPIDA */
.quick-action-buttons {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.quick-action-btn.secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

/* 📱 RESPONSIVIDAD MÓVIL */
@media (max-width: 768px) {
    .module-navigation-area {
        padding: 8px;
        gap: 6px;
    }

    .module-nav-btn {
        padding: 5px 8px;
        font-size: 0.75em;
    }

    .module-context-info {
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .quick-action-buttons {
        gap: 6px;
    }

    .quick-action-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    /* Botones de navegación en modal - móvil */
    .module-navigation-buttons {
        padding: 8px;
        margin: 8px 0;
    }

    .nav-section-title {
        font-size: 0.8em;
        margin-bottom: 6px;
    }

    .nav-buttons-row {
        gap: 4px;
        margin-bottom: 4px;
    }

    .module-nav-btn {
        padding: 5px 8px;
        font-size: 0.7em;
        min-width: 0;
    }

    .module-nav-btn i {
        font-size: 0.8em;
    }

    .quick-questions {
        padding: 8px;
        margin: 8px 0;
    }

    .quick-btn {
        padding: 6px 8px;
        font-size: 0.75em;
        margin: 2px;
    }
}

/* 🎨 ANIMACIONES SUAVES */
.module-context-info,
.module-explanation-message,
.module-objectives-list,
.module-lessons-list {
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-nav-btn,
.quick-action-btn {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🌟 EFECTOS ESPECIALES */
.module-highlight {
    background: linear-gradient(135deg, #fff9c4 0%, #f0f4c3 100%);
    border-left: 4px solid #fbc02d;
    padding: 10px;
    border-radius: 6px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.module-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 🔗 ENLACES DE NAVEGACIÓN */
.module-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.module-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 📊 ESTADÍSTICAS DEL MÓDULO */
.module-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #666;
}

.stat-item i {
    color: #007bff;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* 🎯 BOTONES DE NAVEGACIÓN EN EL MODAL */
.module-navigation-buttons {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.nav-section-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-buttons-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-buttons-row:last-child {
    margin-bottom: 0;
}

.module-nav-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.module-nav-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.module-nav-btn:active {
    transform: translateY(0);
}

.module-nav-btn i {
    font-size: 0.9em;
    flex-shrink: 0;
}

/* 💬 MEJORAR SECCIÓN DE PREGUNTAS RÁPIDAS */
.quick-questions {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.quick-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 3px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}
